[LeetCode] Matrix Similarity After Cyclic Shifts

1 · · Nov. 26, 2023, 4:33 a.m.
Summary
2946. Matrix Similarity After Cyclic Shifts You are given a 0-indexed m x n integer matrix mat and an integer k. You have to cyclically right shift odd indexed rows k times and cyclically left shift even indexed rows k times. Return true if the initial and final matrix are exactly the same and false otherwise. ...