Given a grid with obstacles, find the minimum steps to reach the bottom-right cell from the top-left cell.
Unlock detailed company stats for this questionUpgrade
Scale-ups: minimum steps if you can remove at most K obstacles, and minimum obstacles to remove so you can reach the bottom-right in minimum steps. Similar to LC 1293 Shortest Path in a Grid with Obstacles Elimination.
Expect follow-ups like
- What is the minimum number of steps if you can remove at most K obstacles?
- What is the minimum number of obstacles to remove so that you can reach the bottom-right in minimum steps?
Format · 30 minutes for the base problem plus two scale-ups.
Community answers
No answers contributed by the community yet.
Related questions
Count the ways to reach the bottom-right cell of a grid with obstacles.Given two grids, find the minimum path sum from the top left to the bottom right cell where switching grids costs S.Find the minimum initial power needed to reach the bottom-right cell of a grid.Related courses

Course

Course
Course
