Given an n x n binary matrix grid, you are permitted to flip at most one cell from grid.
An island is defined as a group of
Constraints:
n == grid.length
n == grid[i].length
n
grid[i][j] is either
Given an n x n binary matrix grid, you are permitted to flip at most one cell from grid.
An island is defined as a group of
Constraints:
n == grid.length
n == grid[i].length
n
grid[i][j] is either