Priority Queue | Sololearn: Learn to code for FREE!

+1

Priority Queue

Implement a priority queue that allows 3 levels of priority for queued items: LOW, NORMAL and HIGH. Also write suitable adapter classes that will allow you to associate this queue with the queue monitor functionality.

4/5/2019 12:34:41 PM

Sachin Naik

1 Answer

New Answer

0

For Python you could use three lists and use append and pop(0) for a simple solution. Unsure what you require for the queue monitor functionality