• Links two binomial trees of the same rank

    The linking operation combines two binomial trees of the same rank into a new binomial tree containing the union of their elements, and preserving the heap property.

    Parameters

    Returns BinomialTree<any>

    a new binomial tree that is the result of linking the two trees.