Rotate array elements
Filed under Sirion
The question
Given an array of size n and k, move elements from k+1 to n-1 to the beginning using O(1) space and O(n) time.
No write-up yet. Related questions below have one.
Related Sirion questions
Collected from public candidate posts and coding forums. Updated Nov 2026.