You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem description: A left rotation operation on an array of size n shifts each of the array's elements 1 unit to the left. Given an integer, d, rotate the array that many steps left and return the result.
Input 5 4 1 2 3 4 5
Output 5 1 2 3 4
The text was updated successfully, but these errors were encountered:
Problem description:
A left rotation operation on an array of size n shifts each of the array's elements 1 unit to the left. Given an integer, d, rotate the array that many steps left and return the result.
Input
5 4
1 2 3 4 5
Output
5 1 2 3 4
The text was updated successfully, but these errors were encountered: