You are given a grid. Find the minimum area of a rectangle with sides parallel to the grid edges that encloses all cells with a value of
Constraints:
grid.length, grid[i].length
grid[i][j] is either
The input is generated such that there is at least one grid.
You are given a grid. Find the minimum area of a rectangle with sides parallel to the grid edges that encloses all cells with a value of
Constraints:
grid.length, grid[i].length
grid[i][j] is either
The input is generated such that there is at least one grid.