closure-heap
1.0.0 • Public • Published closure-heap
This is an implementation of a Heap datastructure. Smaller keys rise to
the top.
This implementation is extracted from the Google Closure Library.
Usage
const Heap = require('closure-heap')
const h = new Heap
h.insert(3, 'sheep')
h.insert(1, 'goat')
h.insert(2, 'chicken')
console.log(h.remove())
See the Closure docs (or take a look at the source) for additional
documentation.
Versions
Current Tags
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.0 | 3 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.0 | 3 | |
Package Sidebar
Install
Weekly Downloads