You are viewing a single comment's thread. Return to all comments →
My C# code:
var inString = Console.ReadLine().Split(' '); var size = int.Parse(inString[0]); int d = int.Parse(inString[1]); var inString_temp = Console.ReadLine().Split(' '); List<int> seq = Array.ConvertAll(inString_temp,Int32.Parse).ToList(); int pointer; for (pointer = d; pointer < seq.Count; pointer++) { Console.Write($"{seq[pointer]} "); } for (pointer = 0; pointer < d; pointer++) { Console.Write($"{seq[pointer]} "); }
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 →
My C# code: