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()`.
Glossary: Data Structures and Algorithms in Java
A heap where the largest item comes out first. In Java you get one from `PriorityQueue` with `Comparator.reverseOrder()`.