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

Open Rotate Array Left in Code Arena →