Path With Minimum Effort
Medium
Shortest Path Algorithms
In a grid of heights, the effort of a path is the maximum absolute height difference between two consecutive cells on it. Print the minimum effort needed to travel from the top-left to the bottom-right cell (moves are up, down, left, right).
Constraints
1 <= R, C <= 100 1 <= height <= 10^6
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.