← All problemsSign in

Jumper

In CodeChef city, buildings are built in an N * N grid with each cell of the grid containing exactly one building with given height. You are at the roof of the building at position Sx row and Sy col, and you have to reach the roof of the building at position Dx row and Dy col. You can only jump from a building to the immediate neighbor buildings (that is, to buildings with which your current build

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