예제 #1
0
파일: HeapSort.cs 프로젝트: aaadith/algohub
 public static void Run()
 {
     int[] a = { 6, 16, 239, 75, 1214, 34, 49, 840, 96, 4, 104, 432, 2, 29, 62, 5, 14 };
     Utils.Print(a);
     HeapSort.Sort(a);
     Utils.Print(a);
 }
예제 #2
0
 public void HeapSort_InputStringArray_AscendingOrder()
 {
     string[] s = { "S", "O", "R", "T", "E", "X", "A", "M", "P", "L", "E" };
     HeapSort.sort(s);
     UnityEngine.Debug.Log(s);
     Assert.True(BaseSort.isSorted(s));
 }