Arrays: Left Rotation

  • + 0 comments

    I also thought the same. Even if the rotations are made subsequent we can have two pointers x and y take care of the start of new array after rotations and end of new array after rotations. Then we can print from x to y.(Only in case of multiple query)