← All problemsSign in

Infinite Bus

It was another morning and as usual $Abhay$ and his friends were late to join the class. The class starts at $8:30 AM$ sharp. There are $N$ students who wish to join the class. There is only one way of going to the class and that is via school bus. But the interesting part is that the bus is of $infinite$ $capacity$ and it will make only one trip to the Academic building. The bus arrives in front

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