You are viewing a single comment's thread. Return to all comments →
List<int> ans = new List<int>(); int start = d%n ; int newSize = n + start ; for(int i = start ;i<newSize;i++ ) ans.Add(arr[i%n]); return ans;
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 →
C# solution