Leetcode 1914. Cyclically Rotating a Grid
Treat the m x n matrix as concentric layers (rings) and cyclically rotate each layer counterclockwise by k steps, returning the transformed matrix. Note m and n are even and k can be large, so rotate each ring by k mod ring_length efficiently.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.