You are viewing a single comment's thread. Return to all comments →
public static List<int> rotateLeft(int d, List<int> arr) { for(int i =0; i < d; i++){ arr.Add(arr[0]); arr.Remove(arr[0]); } return arr; }
Seems like cookies are disabled on this browser, please enable them to open this website
Left Rotation
You are viewing a single comment's thread. Return to all comments →
Here's a solution in C