The Queue of Doubts
CodeChefOpen on judge ↗
Everybody loves Praveen sir's classes. He explains stuff so well, one can't help but get engaged in the classes and listen to what he has to say. But every once in a while, there comes a difficult topic that he has to explain, and students get doubts. Praveen sir being the dedicated teacher that he is, wants to clear everyone's doubts. He knows the total number of students who have doubts - $N$
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.
Sign in to chat with the tutor and save your progress.
Sign in to start