public static void Demo() { int[] array = new int[] { 4, 1, 3, 2, 16, 9, 10, 14, 8, 7, 4, 3, 19, 8, 33, 45 }; PrintUtil.PrintHeap(array); HeapSort(array); PrintUtil.PrintHeap(array); foreach (var item in array) { Console.Write(item); Console.Write(' '); } }
public void Print() { PrintUtil.PrintHeap(_heap, _heap_size); }