• Adds an element to the max-heap.

    Type Parameters

    Parameters

    • instance: H

      The max-heap instance.

    • node: H[0]

      The element to add.

    Returns void