We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
n = int(nd[0])
d = int(nd[1])
a = list(map(int, input().rstrip().split()))
l= [1,2,3,4,5,6,7,8,9]
i=0
while i<len(a):
print (a[(i+d)%len(a)], end = ' ')
i+=1
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Left Rotation
You are viewing a single comment's thread. Return to all comments →
nd = input().split()