What is the minimum number of queues needed when implementing a priority queue?
What is the minimum number of queues needed when implementing a priority queue?
Answer
The minimum number of queues needed in this case is two. One queue is intended for sorting priorities while the other queue is intended for actual storage of data.
Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website.
If you are using this website then its your own responsibility to understand the content of the website