Left Rotation

  • + 0 comments
    #python solution
    def rotateLeft(d, arr):
        return arr[d:]+arr[:d]