Left-shifting an array by `n` positions means that each element in the array is moved `n` positions to the left. For example, if we have an array `[1, 2, 3, 4, 5]` and we left-shift it by 2 positions, the new array will be `[3, 4, 5, 1, 2]`.
Show more…