Arrays: Left Rotation

  • + 0 comments
    def rotLeft(a, d):
        return a[d:] + a[:d]