← All problemsSign in

Brightest Brain

Reet and Misha are into the finals of "Brightest Brain Championship" organised annually by their company, FIGmd. The championship consists of a game. The rules of the game are simple: 1. There are N stones. 2. Rahul, being the organiser decided that **Reet** will only pick up **even** no. of stones and **Misha** will only pick up **odd** no. of stones. 3. The two players will play alternatively.

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