heap-lite

1.0.1 • Public • Published

heap-lite

a lite JS implementation of the heap data structure (min-heap)

Install

  $ npm install -S heap-lite

ES6

  import Heap from 'heap-lite'

ES5

  var Heap = require('heap-lite').default

Example

  import Heap from 'heap-lite'
  const heap = new Heap()
  heap.insert(1)
  heap.insert(2)
  heap.insert(3)
  heap.pop()

Readme

Keywords

none

Package Sidebar

Install

npm i heap-lite

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • awhoof