• + 0 comments
    Python 3 code :
    def rotateLeft(d, arr):
        arr_length = len(arr)
        return [arr[(i+d)%arr_length] for i in range(arr_length)]