You are viewing a single comment's thread. Return to all comments →
python solution
n, d = map(int,input().split(' ')) arr = list(map(int,input().split(' '))) for i in range(n): print(arr[(d+i)%n],end=' ')
Seems like cookies are disabled on this browser, please enable them to open this website
Left Rotate the Array
You are viewing a single comment's thread. Return to all comments →
python solution