AlgoMaster Logo

Number of Distinct Islands

grid=[[1,1,0,0,0],[1,0,0,0,0],[0,0,0,1,1],[0,0,0,0,1]]
0 / 81
algomaster.io
Step:Start: Count distinct islands by their shifted coordinates