Stack And Queue Question:

Tell me what are priority queues?

Stack And Queue Interview Question
Stack And Queue Interview Question

Answer:

A priority queue is essentially a list of items in which each item has associated with it a priority
Items are inserted into a priority queue in any, arbitrary order. However, items are withdrawn from a priority queue in order of their priorities starting with the highest priority item first.

Priority queues are often used in the implementation of algorithms


Previous QuestionNext Question
Explain stacks and queues in detail?Do you know what is a circular singly linked list?