๐
Day 11: Left Rotate the Array by One
Example 1:Input: nums = [1, 2, 3, 4, 5]
Output: [2, 3, 4, 5, 1]
Explanation: Initially, nums = [1, 2, 3, 4, 5]
Rotating once to the left results in nums = [2, 3, 4, 5, 1].
Example 2:Input: nums = [-1, 0, 3, 6]
Output: [0, 3, 6, -1]
Explana...
richak.hashnode.dev5 min read