1

How to delete elements in a priority queue ?

 1 year ago
source link: http://codeforces.com/blog/entry/67265
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How to delete elements in a priority queue ?

I want to delete some element in a priority queue not at the top, how should i do? can someone suggest any method, in constant or logarithmic time. How to handle duplicates while removing


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK