3643. Flip Square Submatrix Vertically
You are given an
m x ninteger matrixgrid, and three integersx,y, andk.The integers
xandyrepresent the row and column indices of the top-left corner of a square submatrix and the integerkrepresents the size (side length) of the square submatrix.Your task is to flip the submatrix by reversing the order of its rows vertically.
Return the updated matrix.
1 | class Solution { |