← All problemsSign in

Chefina and Candies

Chef wanted to impress chefina so he took her to a candy shop. Chef asked Shopkeeper to bring N Boxes of Candies. Each Box contain some number of candies. Chef wanted to distribute the candies between chef & chefina, but their is one condition: 1) All candies of each box can be given to either chef or chefina i.e For example: if their are 5 Boxes and each box contain some num

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