AlgoMaster Logo

Number of Islands

grid=[["1","1","0","0"],["1","1","0","0"],["0","0","1","0"],["0","0","0","1"]]
0 / 63
Islands Found:0
012301231100110000100001queue
algomaster.io
Step:Start: Count islands using BFS