Rotate Array
Asked at Warner Bros. Discovery · Coding Questions · Difficulty: Easy
Given an array of integers and a positive integer `k`, shift the elements of the array to the left by `k` positions, and then shift them back to the right (the total shift results in 0), and return the processed array.
Loading the problem…