The Parkour Challenge
CodeChefOpen on judge ↗
Recently, Trijeet got interested in Parkour. He did some training and now he feels he is ready to take on the big challenge - jumping from rooftops to rooftops. There are $N$ buildings in a straight line, and Trijeet only wants to jump to the next building to the right which is strictly higher than the height of the building he is currently on. If there are none, he stays there. [Horizontal dist
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