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

    Function remove

    • Removes a specific element from anywhere in the heap. Maintains heap property after removal.

      Type Parameters

      Parameters

      • instance: H

        The max-heap instance.

      • node: H[0]

        The element to remove.

      Returns boolean

      true if element was found and removed, false otherwise.