You are given a heights of size rows $ imes$ columns, where heights[row][col] represents the height of the cell at coordinate (row, col).
You are currently positioned at the top left cell
A route’s effort is defined as the maximum absolute difference in heights between two consecutive cells along the path.
Return the minimum effort required to travel from the top left cell to the bottom right cell.
Constraints:
rows heights.length
columns heights[i].length
rows, columns
heights[i][j]
You are given a heights of size rows $ imes$ columns, where heights[row][col] represents the height of the cell at coordinate (row, col).
You are currently positioned at the top left cell
A route’s effort is defined as the maximum absolute difference in heights between two consecutive cells along the path.
Return the minimum effort required to travel from the top left cell to the bottom right cell.
Constraints:
rows heights.length
columns heights[i].length
rows, columns
heights[i][j]