← All problemsSign in

Easy But Not Peasy

Huh ! you reached this far ! Chef was too surprised to know that you are not a duffer.However,he still doesn't consider you a Genius. To pass the next test, Chef decided to give you another number $X$. This time ,your task is to change it from odd to even and even to odd. However , the odd number you give for even numbers should be one more than it,but the even number you give for odd numbers shou

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