Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2946. Matrix Similarity After Cyclic Shifts
Check whether performing k iterations of alternating cyclic row shifts (even-indexed rows left, odd-indexed rows right) returns the matrix to its original state; because each row is effectively rotated by k mod n positions (left for even rows, right for odd rows), verify that every row equals its corresponding rotation.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.