Example #1
0
 static void Main(string[] args)
 {
     PriorityQueue<int> heap = new PriorityQueue<int>();
     heap.Enqueue(1);
     heap.Enqueue(2);
     heap.Enqueue(3);
     heap.Enqueue(4);
     heap.Dequeue();
     heap.Enqueue(3);
     heap.Enqueue(5);
     Console.WriteLine(heap.Dequeue());
     heap.ToString();
     heap.Enqueue(2);
     heap.ToString();
 }