js-heapq
Python's heap and priority queue library for JavaScript. Parents are js-data-structures and aureooms/js-heap.
let {
heapify ,
heappop ,
heappush ,
heappushpop ,
heapreplace ,
merge ,
nlargest ,
nsmallest ,
} = heapq ;
This package has been deprecated
Author message:
This package has moved to @data-structure/heapq.
Python's heap and priority queue library for JavaScript. Parents are js-data-structures and aureooms/js-heap.
let {
heapify ,
heappop ,
heappush ,
heappushpop ,
heapreplace ,
merge ,
nlargest ,
nsmallest ,
} = heapq ;
npm i @aureooms/js-heapq
2
3.1.0
AGPL-3.0