Jump to content

Priority queue: Difference between revisions

m
indented the numbered list.
m (added whitespace.)
m (indented the numbered list.)
Line 5:
;Task:
Create a priority queue.   The queue must support at least two operations:
:#   Insertion.   An element is added to the queue with a priority (a numeric value).
:#   Top item removal.   Deletes the element or one of the elements with the current top priority and return it.
 
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.