You are viewing a single comment's thread. Return to all comments →
simple python3
lst=[] for i in range(0,k): p=a.pop(-1) a.insert(0,p) for i in queries: lst.append(a[i]) return lst
Seems like cookies are disabled on this browser, please enable them to open this website
Circular Array Rotation
You are viewing a single comment's thread. Return to all comments →
simple python3