You are viewing a single comment's thread. Return to all comments →
Python 3:
rotated_arr = [] rotated_arr.extend(arr[d:]) rotated_arr.extend(arr[:d]) 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 →
Python 3: