binary-heap-ds
v1.0.0
Published
Binary Heap implementation in JavaScript
Downloads
5
Maintainers
Readme
binary-heap
Binary Heap implementation in JavaScript
Installation & Usage :
npm install binary-heap-ds
const BinaryHeap = require("binary-heap-ds");
let bh = new BinaryHeap();
bh.insert(10); //Inserts 10 to the heap
bst.extractMax(); // pops max value out of the heap and adjusts rest of the heap