Rotate List Left
Easy📝 Description
Rotate list left by k positions (elements wrap around)
Input Format
First line: space-separated list Second line: k
Output Format
Rotated list
Constraints
List size ≤ 1000, 0 ≤ k ≤ 1000
🔍 Sample Input
1 2 3 4 5
2
✅ Sample Output
3 4 5 1 2
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run