Arrays: Left Rotation

  • + 0 comments

    my one liner solution

    return a[d:] + a[:d]

    where a is the arraya and d is the number of rotation