← All problemsSign in

Desik And Chef

2 players "Desik" and "Chef" play a game on an array of size N+1, where the first index of the array is 0 and the last index is N. And all the indices from "1" to "N" of the array have numbers assigned to it. In one operation you can do the following move:- - Choose an index i (1 and if the value of the number at that index is "Odd" he subtracts 1 from that number and can add that 1 to any of t

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