UNPKG

libstl

Version:

Standard JavaScript/TypeScript Library: DoublyLinkedList, Stack, Queue, Heap, MaxHeap, MinHeap, PriorityQueue

16 lines (11 loc) 260 B
import Heap = require('./Heap'); /** * The MaxHeap class provides the main functionality of a heap, keeping the maximum on the top. * * @class MaxHeap * @extends Heap */ class MaxHeap extends Heap { protected _type = Heap.MAX; } export = MaxHeap;