← All problemsSign in

Harsh and Biscuits

POINTS - 40 Harsh’s brother gifted him a big pack of Parle-G, but it’s too much for him. He doesn’t want to eat them all so to decide which out of them he will eat, he came up with an interesting way. Harsh arranges n biscuits in a line, placing each piece vertically upright like dominoes. In the beginning, he simultaneously pushes some of the biscuits either to the left or to the right. After e

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