Data Structures · Hacker rank

HackerRank ‘Left Rotation’ Solution

A left rotation operation on an array of size shifts each of the array's elements unit to the left. For example, if left rotations are performed on array[1,2,3,4,5] , then the array would become [3,4,5,1,2] .

Advertisements