AlgoMaster Logo

The Maze II

maze=[[0,0,1,0,0],[0,0,0,0,0],[0,0,0,1,0],[1,1,0,1,1],[0,0,0,0,0]],start=[0, 4],destination=[4, 4]
0 / 228
algomaster.io
Step:Start: Find shortest distance in 5x5 maze from (0,4) to (4,4). Initialize distance[start] = 0, all others = infinity.