Rotate Array Left
Medium · rating 1300 · Arrays
The first line has n and k. The second line has n integers. Print the array rotated left by k positions, space-separated.
Constraints: 1 ≤ n ≤ 105, 0 ≤ k ≤ 109
Related problems
- Maximum Window Sum — Medium
- Median Value — Medium
- Rotate Array Right — Medium
- Valid Mountain Array — Medium
- Count Pairs With Sum — Medium
- Heaviest Row — Medium