Explain what is the minimum number of queues that can be used to implement a priority queue?

Category: Data StructureExplain what is the minimum number of queues that can be used to implement a priority queue?
1 Answers
Editor">Editor Staff answered 2 years ago

Two queues are needed. One queue is used to store the data elements, and another is used for storing priorities.