You are given an n n integer matrix grid.
Construct an (n n maxLocal such that maxLocal[i][j] is equal to the maximum value in the grid centered around row i j
Return the matrix maxLocal.
Constraints:
n grid.length grid[i].length
n
grid[i][j]
You are given an n n integer matrix grid.
Construct an (n n maxLocal such that maxLocal[i][j] is equal to the maximum value in the grid centered around row i j
Return the matrix maxLocal.
Constraints:
n grid.length grid[i].length
n
grid[i][j]