You are viewing a single comment's thread. Return to all comments →
python 3
def rotateLeft(d, arr): return map(lambda x: arr[(x[0]+d) % len(arr)], enumerate(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