Loading problem…
Travel from the top-left to the bottom-right of the height grid, moving one cell up, down, left or right. A route's effort is the largest absolute height difference between consecutive cells on that route. Return the minimum possible effort.
The height of a cell alone is not a movement cost. A one-cell route has effort 0 because it contains no step. Do not modify the height grid.
Example 1:
Example 2:
Example 3: