You are given a square integer matrix grid of size n x n that is intended to contain every value from grid, and one value from the range
Return an array of length
Constraints:
n grid.length grid[i].length
grid[i][j]
For all x such that x x that is not equal to any value in grid
For all x such that x x that is equal to exactly grid
For all x such that x i, j such that i, j grid[i][j] == x
You are given a square integer matrix grid of size n x n that is intended to contain every value from grid, and one value from the range
Return an array of length
Constraints:
n grid.length grid[i].length
grid[i][j]
For all x such that x x that is not equal to any value in grid
For all x such that x x that is equal to exactly grid
For all x such that x i, j such that i, j grid[i][j] == x