Arrays: Left Rotation

  • + 0 comments

    What happens if the shiftAmount is larger than the length of the array? I do not think that will work in languages in which modulo can return a negative number.