Example #1
0
 public static void Sort(int[] data, int maxValue)
 {
     CountingSort.Sort(data, maxValue, x => x);
 }
Example #2
0
 public static void Run()
 {
     int[] a      = { 6, 6, 9, 9, 9, 4, 4, 4, 4, 6, 4, 4, 2, 2, 2, 5, 5 };
     int[] result = CountingSort.Sort(a);
     Utils.Print(result);
 }