static void Main(string[] args) { int[] array = new int[] { 5, 90, 0, 20, 57, 1, 90, 300 }; Heap <int> MaxHeap = new Heap <int>(array); MaxHeap.InsertKey(300); MaxHeap.Sort(); string str = MaxHeap.Display(); Console.WriteLine(str); Console.ReadLine(); }