← All problemsSign in

After the Sports Event

Recently ISM organized a balling competition. Contest was a grand success and you were assigned the job of keeping the balls back to the sports room. There were a lot of balls. Each having a no. on them from 1,2,3…. upto the no. of balls. But you saw there are only “N” columns in that sports room where you can store those balls. You should start keeping the balls in order, i.e. first ball no. 1, t

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