AlgoMaster Logo

01 Matrix

grid=[[0,0,0],[0,1,0],[0,0,0]]
0 / 27
algomaster.io
Step:Run a BFS out of every 1-cell until it reaches a 0