static LeftHeap <int> GetHeap(int[] A) { var heap = new LeftHeap <int>(); foreach (var item in A) { heap.Insert(item); } return(heap); }
public void MargeWith(LeftHeap <T> other) { Root = HeapNode <T> .Marge(Root, other.Root); }