← All problemsSign in

Chef goes Shopping!

Not only did 7 eat 9, but also exhausted Chef's pantry. So Chef's next task is to refill it. However, Chef only has a few baskets, and each basket has it's own limit in terms of the weight it can carry. The items to be purchased by Chef are plenty in number and varying in weight. Also, Chef has to buy an item, as a whole, indivisible entity, depending on the capacity of the basket and every item t

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start