Parity Game
CodeChefOpen on judge ↗
Mancunian is playing the famous Parity Game. In this game, the player is given an array A comprising of n positive integers. The goal is to remove some (possibly empty) subsequence of these integers so that the sum of the resulting array is even. The player is NOT allowed to remove all the numbers (i.e. the resulting array should be non-empty). There can be multiple possible subsequences that ca
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