示例#1
0
        static LeftHeap <int> GetHeap(int[] A)
        {
            var heap = new LeftHeap <int>();

            foreach (var item in A)
            {
                heap.Insert(item);
            }
            return(heap);
        }
示例#2
0
 public void MargeWith(LeftHeap <T> other)
 {
     Root = HeapNode <T> .Marge(Root, other.Root);
 }