heap-it

1.0.1 • Public • Published

heapIt

a minimum heap!

To run tests

  • install mocha -g
  • npm test or mocha --compilers js:babel-register --recursive

Usage

It is important to note that .default has to be referenced explicitly in order to obtain the class from the module. More info here.

var Heap = require("heap-it").default
var heap = new Heap()

heap.insert(14)
heap.insert(9)
heap.insert(11)
heap.insert(5)

console.log(heap.list)
// [ 0, 5, 9, 11, 14 ]

Readme

Keywords

none

Package Sidebar

Install

npm i heap-it

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • gmeluski