← All problemsSign in

Game of Cycle

Karan and Arjun got bored of finding who is more lucky based on coin tosses. So they reached Avi, to seek for a better game. Avi made them sit on two isolated screens where they can't see each other's screen and told them a number $N$. Now both of them get a few pairs of numbers on their screen and they just have to choose any random out of them (Just like how you choose head or tail without any o

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