static void Main(string[] args) { HeapQueue heapQueue = new HeapQueue(); heapQueue.Push(new Element(1, 2)); Console.WriteLine($"Popped {heapQueue.Pop().Key}"); }
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) };