You are viewing a single comment's thread. Return to all comments →
Python code:
def rotateLeft(d, arr): lst = [] for j in range(n): lst.append(arr[(j+d)%n]) return lst
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 →
Python code:
def rotateLeft(d, arr): lst = [] for j in range(n): lst.append(arr[(j+d)%n]) return lst