← All problemsSign in

Box Packers

Rohit operated a ball bearings factory. He used to pack his daily production into boxes and judged the number of ball bearings by weighing them. One day, his weighing machine broke. Having no spare machine at hand, he decided to implement a slower, yet accurate method of producing boxes containing the required number of ball bearings. He completely filled a box with ball bearings into which he kne

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