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

    Function remove

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

      Type Parameters

      • H extends IHeapArray

        The type of min-heap array.

      Parameters

      • instance: H

        The min-heap instance.

      • node: H[number]

        The element to remove.

      Returns boolean

      true if element was found and removed, false otherwise.