Chef and Magical Steps
Chef has a new customer and he wants to prepare his order as soon as possible. While preparing, he sees that he is out of mint sauce. He has to run upstairs to get it from other kitchen. Chef is currently on the $X^{th}$ stair. He has to climb all the way up to the $Y^{th}$ stair in minimum number of steps. In one step, Chef can do one of the following things: - Climb a single stair. ( i.e go fr
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.
Sign in to chat with the tutor and save your progress.
Sign in to start