Sail E0 Webinar
Question
Heap can be used as¦
Options:
A .  Priority queue
B .  Stack
C .  A decreasing order array
D .  None of the mentioned
Answer: Option A


The property of heap that the value of root must be either greater or less than both of its children makes it work like a priority queue.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers