← All problemsSign in

Lets Play A Game

Guddu and Bablu were getting bored, so they decided to play a game. Bablu gives him a situation and asks Guddu to answer it. But he is not as wise as his brother so he hired you, the best programmer of Mirzapur at gunpoint, and now you have to answer it. You are given an array $A$, consisting of $N$ integers. Turn by turn, each player will pick a number from $A$, and remove one or more occurrence

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