Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 189. Rotate Array
Rotate an integer array to the right by k steps (k may exceed the array length), effectively moving each element to index (i+k) mod n. Aim for an efficient solution—typically O(n) time—and if possible do it in-place with O(1) extra space.
Asked at:
Microsoft
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid October, 2025
Microsoft
Mid-level
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.