← All problemsSign in

Birthday Game

It's Anjali's birthday & she wants that her friends should play a game. Anjali has 'N' friends Rules of the game are as follows : - - She want that all of her friends should sit in a straight line facing towards the DJ. - The DJ will play a song for 'K' seconds and when the song is in play person sitting on extreme left will pass a ball to the person sitting next to him/her & so on. - Assume 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