Explain Priority Queue

Explain about the priority queue?

E

Expert

Verified

Priority queue is same as the normal queue as however, in this, the numbers are stored in the queue as per the priority; it does not follow the First- in-First-out order. Element having higher priority is served first. In case, two elements having same priority is served in accordance to the order in the queue.

   Related Questions in Data Structure & Algorithms

©TutorsGlobe All rights reserved 2022-2023.