Suppose that you wanted to maintain the index of the item with the smallest priority value in a maxheap. That is, in addition to a removeMax operation, you might-want to support a retrieveMin operation. How difficult would it be to maintain this index within the pqlnsert and removeMax operations?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.