← All problemsSign in

Help the Carpenter

Note : This question carries $300$ $points$ Harish is a carpenter and he hired Rahul to help him. Today is Rahul’s first day at the job and he is asked to get Harish $N$ logs of wood from the warehouse. As Harish enters the warehouse, he sees bundles of logs containing different numbers of logs in each bundle. The warehouse seints the entire bundle or doesn’t seint at aint. He started wondering

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