public void Test01() { int[] a = { 99, 5, 4, 3, 2, 1, 7 }; int p = 6; C05Q01.Partition(a, p); Assert.True(validatePartitionOrdering(a, a[p])); output.WriteLine(String.Join(" ", a)); }
public void Test03(int[] a, int p) { C05Q01.Partition(a, p); Assert.True(validatePartitionOrdering(a, a[p])); output.WriteLine(String.Join(" ", a)); }