Skip to content

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.

Where the book teaches it

Related terms

HeapComparator