UNPKG

addressable-binary-heaps

Version:

A versatile TypeScript library for addressable binary heaps, delivering optimized and scalable min-heap and max-heap implementations, seamlessly supporting both object-oriented and functional paradigms.

12 lines (10 loc) 280 B
/** * An abstract base class for implementing heap data structures. * * Provides a common interface for both min-heap and max-heap implementations. * * @template N - The type of nodes in the heap, must extend `IHeapNode`. */ class AbstractHeap { } export { AbstractHeap };