• + 1 comment

    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 __