For searching an element from heap,then delete it from heap
searching take O(n) in heap and deletion take O(logn) right for single element.
search one for loop one function + heapify another function inside main
we are searching and deleting only a single element
Read question an element.
and + means addition here, it is not RE.