Given a two dimensional grid consisting of
A closed island is an island that is completely surrounded by grid.
Return the total number of closed islands in the grid.
Constraints:
grid.length, grid[0].length
grid[i][j]
Given a two dimensional grid consisting of
A closed island is an island that is completely surrounded by grid.
Return the total number of closed islands in the grid.
Constraints:
grid.length, grid[0].length
grid[i][j]