• + 0 comments

    C# solution

        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;