← All problemsSign in

Chef and step game

Chef is alone at home and he is now going to play a game in this game there is some steps that numbers from 0 to $N$ step. at the starting of game chef is on last step that is $N$th step . and the goal of chef is to reach the $0$th step at the end of game with minimum number of jump. - $Rule$ - If the given steps number is $even$ then chef is allowed to jump $N/2$ steps below at maximum - If

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