Skip to content

Glossary: Data Structures and Algorithms in Java

max-heap

A heap where the largest item comes out first. In Java you get one from `PriorityQueue` with `Comparator.reverseOrder()`.

Where the book teaches it

Related terms

heapPriorityQueuecomparator