AlgoMaster Logo

Number of Enclaves

grid=[[0,0,0,0],[1,0,1,0],[0,1,1,0],[0,0,0,0]]
0 / 28
algomaster.io
Step:Count the enclaves: land cells that cannot walk off the grid