← All problemsSign in

HUNGRY CHEF

Chef loves laddus and his mom has just made a fresh batch. Now, Chef wants to eat one but he must choose it carefully. The laddus are arranged in a row and each laddu has a different weight. When he chooses a laddu he must make sure that among the remaining laddus, the total weight of the odd-positioned and even-positioned laddus becomes equal, otherwise his mom will catch him. Can you help Chef f

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