A priority queue is most efficiently implemented using a:
Show answerHide answer
Correct answer: (D) Heap
Explanation
Insert and delete-max/min take O(log n).
Correct answer: (D) Heap
Explanation
Insert and delete-max/min take O(log n).
This is question 150 of DSSSB TGT Computer Science Full Mock Test 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.