Minimum number of queues required to implement the priority queue

Q.  What are the minimum number of queues required to implement the priority queue?
- Published on 16 Jun 15

a. 3
b. 2
c. 1
d. 5

ANSWER: 2
 
Out of the 2 queues 1 queue is used for storing actual data and the other queue is used for storing priority data.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)