https://github.com/data-structures-and-algorithms/heapq
:vertical_traffic_light: Python's heap and priority queue library for JavaScript
https://github.com/data-structures-and-algorithms/heapq
agpl data-structures heap heapq javascript priority-queue queue
Last synced: 6 months ago
JSON representation
:vertical_traffic_light: Python's heap and priority queue library for JavaScript
- Host: GitHub
- URL: https://github.com/data-structures-and-algorithms/heapq
- Owner: data-structures-and-algorithms
- License: agpl-3.0
- Created: 2016-11-14T16:57:44.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2025-04-12T02:01:45.000Z (7 months ago)
- Last Synced: 2025-04-26T10:36:12.646Z (7 months ago)
- Topics: agpl, data-structures, heap, heapq, javascript, priority-queue, queue
- Language: JavaScript
- Homepage: https://data-structures-and-algorithms.github.io/heapq
- Size: 4.06 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:vertical_traffic_light:
[@data-structure/heapq](https://data-structures-and-algorithms.github.io/heapq)
==
Python's heap and priority queue library for JavaScript. Parents are
[js-data-structures](https://github.com/make-github-pseudonymous-again/js-data-structures)
and
[@heap-data-structure](https://github.com/heap-data-structure).
```js
import {
heapify ,
heappop ,
heappush ,
heappushpop ,
heapreplace ,
merge ,
nlargest ,
nsmallest ,
} from '@data-structure/heapq' ;
```
[](https://raw.githubusercontent.com/data-structures-and-algorithms/heapq/main/LICENSE)
[](https://www.npmjs.org/package/@data-structure/heapq)
[](https://github.com/data-structures-and-algorithms/heapq/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/data-structures-and-algorithms/heapq/network/dependencies)
[](https://github.com/data-structures-and-algorithms/heapq/issues)
[](https://www.npmjs.org/package/@data-structure/heapq)
[](https://codeclimate.com/github/data-structures-and-algorithms/heapq/issues)
[](https://codeclimate.com/github/data-structures-and-algorithms/heapq/trends/churn)
[](https://codecov.io/gh/data-structures-and-algorithms/heapq)
[](https://codeclimate.com/github/data-structures-and-algorithms/heapq/trends/technical_debt)
[](https://data-structures-and-algorithms.github.io/heapq/source.html)
[](https://bundlephobia.com/result?p=@data-structure/heapq)
## :scroll: References
- [Python's heapq library](https://docs.python.org/3.6/library/heapq.html).