Removes a specific element from anywhere in the heap. Maintains heap property after removal.
The type of max-heap array.
The max-heap instance.
The element to remove.
true if element was found and removed, false otherwise.
true
false
Removes a specific element from anywhere in the heap. Maintains heap property after removal.