Loading...
Loading...
Cookie choices
WoHoTech uses essential cookies for login and site features. Non-essential analytics and advertising scripts load only after you accept them.
Read privacy policyYou are given an m x n integer matrix grid, where m and n are both even integers, and an integer k. Rotate each layer of the matrix counter-clockwise by k steps.
Example 1
Input: grid = [[40,10],[30,20]], k = 1 Output: [[10,20],[40,30]]