AlgoMaster Logo

Shortest Path in a Grid with Obstacles Elimination

grid=[[0,0,0],[1,1,0],[0,0,0],[0,1,1],[0,0,0]],k=1
0 / 132
000110000011000queueOpenObstacleVisitedEliminated
algomaster.io
Step:Start: Find shortest path from (0,0) to (4,2) with at most 1 obstacle eliminations