diff --git a/HackerEarth/monk-and-rotation.py b/HackerEarth/monk-and-rotation.py new file mode 100644 index 0000000..7e10dba --- /dev/null +++ b/HackerEarth/monk-and-rotation.py @@ -0,0 +1,9 @@ +for _ in range(int(input())): + n,k = map(int,input().split()) + lst = list(map(int,input().split())) + idx = n-(k%n) + for i in range(idx,n): + print(lst[i],end = " ") + for i in range(idx): + print(lst[i],end = " ") + print()