From heaven to earth
Chef has been working in a restaurant which has $N$ floors. He wants to minimise the time it takes him to go from the $N$-th floor to ground floor. He can either take the elevator or the stairs. The stairs are at an angle of $45$ degrees and Chef's velocity is $V_1$ m/s when taking the stairs down. The elevator on the other hand moves with a velocity $V_2$ m/s. Whenever an elevator is called, i
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