AlgoMaster Logo

01 Matrix

grid=[[0,0,0],[0,1,0],[0,0,0]]
0 / 50
0000-10000queueZeroUnvisitedComputed
algomaster.io
Step:Start: Find nearest distance to 0 for each cell using multi-source BFS