Glossary: Data Structures and Algorithms in JavaScript
Max-heap
Also written: max heap
A heap that gives the biggest item first. You make one from the MinHeap class by flipping the comparison to a > b.
Glossary: Data Structures and Algorithms in JavaScript
Also written: max heap
A heap that gives the biggest item first. You make one from the MinHeap class by flipping the comparison to a > b.