How do I perform a deletion of the kth element on a min-max heap?
A min-max heap can be useful to implement a double-ended priority queue because of its constant time find-min and find-max operations. We can also retrieve the minimum and maximum elements in the min-max heap in O(log 2 n) time. Sometimes, though, we may also want to delete any node in the min-max heap, and this can be done in O(log 2 n) , according to the paper which introduced min-max heaps : ... The structure can also be generalized to support the operation Find(k) (determine the kth smallest value in the structure) in constant time and the operation Delete(k) (delete the kth smallest value