Sponsored
Use these hints if you're stuck. Try solving on your own first.
If the current number is even, we can always subtract a 1 to make it odd. If the current number is odd, we must subtract an odd number to make it even.
Solve with full IDE support and test cases