What is the minimum number of queues needed when implementing a priority queue?
4 years ago
Data Structure and Algorithm
The minimum number of queues needed in this case is two. One queue is intended for sorting priorities while the other queue is used for actual storage of data.
Sujan Bk
Jan 9, 2022