You are viewing a single comment's thread. Return to all comments →
def rotateLeft(d, arr): n = len(arr) d = d % n rotated_arr = [None] * n for i in range(n): rotated_arr[(i - d) % n] = arr[i] return rotated_arr
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 →