You are viewing a single comment's thread. Return to all comments →
Python using recursion and list comphrension
def rotateLeft(d, arr): # Write your code here print(d, arr) if d > len(arr):`` return rotateLeft(d-len(arr), arr) else: __ = arr[d:] __.extend(arr[:d]) return __
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 using recursion and list comphrension