Jump on Buildings
CodeChefOpen on judge ↗
Our well known coding mafia went to the city. *Farzi Coder* is the boss here. He hired a new member named *Lambu Keyboard* in his gang. *Farzi Coder* is so smart (at least that's what he thinks), so he wants to test *Lambu Keyboard's* programming skills. He gave him this task: There are `n` buildings (numbered from left to right) with heights $H_1, H_2, \dots, H_n$. You can start jumping from any
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