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.
14 lines (11 loc) • 307 B
JavaScript
;
/**
* 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 {
}
exports.AbstractHeap = AbstractHeap;