We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db1c28 commit 3d6ea4eCopy full SHA for 3d6ea4e
hackerrank/array-left-rotation.py
@@ -0,0 +1,6 @@
1
+# -*- coding: utf-8 -*-
2
+# https://www.hackerrank.com/challenges/array-left-rotation
3
+
4
+n, d = map(int, raw_input().split())
5
+a = map(str, raw_input().split())
6
+print ' '.join(a[d:] + a[0:d])
0 commit comments