Esempio n. 1
0
        static void Main(string[] args)
        {
            HeapQueue heapQueue = new HeapQueue();

            heapQueue.Push(new Element(1, 2));
            Console.WriteLine($"Popped {heapQueue.Pop().Key}");
        }
Esempio n. 2
0
        public void PushTest()
        {
            var heapInstance = new HeapQueue.HeapQueue();

            Element[] listToTest =
            {
                new(1, 1),
                new(3, 3),
                new(5, 5),
                new(6, 6),
                new(8, 8)
            };