Addressable Binary Heaps - v1.0.1
    Preparing search index...

    Function pop

    • Removes and returns the minimum element (root) from the heap. Replaces root with last element and restores heap property.

      Type Parameters

      Parameters

      • instance: H

        The min-heap instance.

      Returns undefined | H[0]

      The minimum element or undefined if heap is empty