1.

Descending priority queue can be implemented using ______(a) max heap(b) min heap(c) min-max heap(d) trieMy question is based upon Heap topic in section Heap of Data Structures & Algorithms II had been asked this question during an interview for a job.

Answer»

The correct choice is (a) MAX heap

Easiest EXPLANATION - Descending priority QUEUE arranges the ELEMENTS based on their priority or value and allows REMOVING the elements in descending order. So, it can be efficiently implemented using max heap.



Discussion

No Comment Found

Related InterviewSolutions