Multiple choice

Heap is employed for implementing

  1. priority queues

  2. binary trees

  3. linked lists

  4. stacks

  5. All of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In heap, the most important node is stored at the top position. If it gets deleted, the second most important node replaces it. It is a similar concept as priority queue.