• Inserts an element into the binomial heap

    Parameters

    • element: any

      the element to insert

    • heap: BinomialHeap<any>

      the binomial heap to insert

    Returns BinomialHeap<any>

    a new binomial heap with the element inserted