Array of Boxes
CodeChefOpen on judge ↗
Alex and Bob are playing a game in which they were given an array consisting of N boxes. Each box consist of only integer number of coins. They play alternatively, In each step they can pick any one of the box from given boxes(which was not picked earlier) and take out all the coins. Given that both play optimally. The game ends when all the boxes are picked up. Determine who will have more numbe
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.
Sign in to chat with the tutor and save your progress.
Sign in to start