← All problemsSign in

Game of Array

Aman and Raju are spending there vacation together and they started playing a game i.e. "Game of Array" , in which they have to pick two distinct number from the given numbers, let's say Aman selects number X1 and X2 and then he can replace all X2 by X1 or X1 by X2. The winner will be decided when any one of them is unable to pick two numbers, and the player who is unable to pick two distinct numb

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