Chef and Gift Basket
CodeChefOpen on judge ↗
Chef is going to meet her friend Chefina after a long time and wishes to gift her something. So, he goes to a shop to buy gift basket for her. In the shop there are $N$ types of baskets. For each basket $i (1 <= i <= N)$, there are $i$ unique fruits in that basket out of which 1 is rare. Chef wants to go big this time so he decides to buy all $N$ baskets. After buying all the baskets, Chef sta
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start