AlgoMaster Logo

305. Number of Islands II

m=3,n=3,positions=[[0,0],[0,1],[1,2],[2,1],[1,1]]
0 / 151
algomaster.io
Step:Start from an empty 3 x 3 grid with no islands