Yuval Adam Yuval Adam - 2 years ago 121
Java Question

Java implementation for Min-Max Heap?

Do you know of a popular library (apache collections, google collections, etc...) which has a reliable Java implementation for a Min-Max heap?

I.e. a heap which allows to peek at its minimum and maximum value in

and to remove at

I did a quick search and couldn't find one. Anyone know better?

Answer Source

From Guava: MinMaxPriorityQueue.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download