• + 0 comments

    Here's a solution in C

    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;
        }