Arrays: Left Rotation

  • + 0 comments

    Great solution! It's possible to simplify that by finding new position as:

    newPos = (i - d)%length