Arrays: Left Rotation

  • + 0 comments
    def array_left_rotation(a, n, k):
        return a[k:] + a[:k]