I am trying to rotate a List of items to the right by the specified numbers of places without using LINQ, how am I able to do this?
I think I am not understanding how to approach/solve this problem in particular. Here's what I have tried so far.
public void Test(List<int> items, int places)
{
items.RemoveAt(places);
items.Add(places);
}
