Sponsored
Use these hints if you're stuck. Try solving on your own first.
Is only tracking a single sum enough to solve the problem?
How does tracking an odd sum and an even sum reduce the number of states?
Solve with full IDE support and test cases