well, the question is of minheap so the value pair which is less than the all the other pair will be at the top but why the answer is 5,15
How do we solve this question?
can you post the question here along with the test case you are failing because I can’t see the question it being a quiz problem.