You are given an grid, along with three integers x, y, and k.
There is a x and column y.
Flip this square submatrix vertically by reversing the order of its rows while keeping the columns unchanged.
Return the modified grid.
Constraints:
m grid.length
n grid[i].length
m, n
grid[i][j]
x m
y n
k m x, n y
You are given an grid, along with three integers x, y, and k.
There is a x and column y.
Flip this square submatrix vertically by reversing the order of its rows while keeping the columns unchanged.
Return the modified grid.
Constraints:
m grid.length
n grid[i].length
m, n
grid[i][j]
x m
y n
k m x, n y