Shift every element left by k positions, wrapping around the front to the back.
Constraints
Example
>>> rotate_left([1, 2, 3, 4, 5], 2) [3, 4, 5, 1, 2] >>> rotate_left([1, 2, 3], 5) [3, 1, 2] >>> rotate_left([], 10) []
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints