public void Test6() { int[] A = new int[] { 3, 8, 9, 7, 6 }; int k = 6; int[] exp = new int[] { 6, 3, 8, 9, 7 }; var sol = new CyclicArraySol(); int[] act = sol.Rotate(A, k); Assert.That(act.SequenceEqual(exp), Is.True); }
public void Test3() { int[] A = new int[] { 0, 0, 0 }; int k = 3; int[] exp = new int[] { 0, 0, 0 }; var sol = new CyclicArraySol(); int[] act = sol.Rotate(A, k); Assert.That(act.SequenceEqual(exp), Is.True); }