Arrays: Left Rotation

  • + 0 comments

    Even if there was no constraint, you could just do: k % n, and then apply the same logic.