array-to-btree

1.0.1 • Public • Published

ArrayToBtree Build Status

Summary

ArrayToBtree is a javcript implementation of building a "Binary tree" from an "Un-Ordered" array. The Tree is not a fully weighted binary tree, but provides an API to convert an array to a tree datastructure.

Installation

npm install -g array-to-btree

Sample Usage

 
var tree = require('array-to-btree');
var inputList = [3,5,8,9,11,12,13,15];
function build(input){
   return tree.toBTree(input);
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i array-to-btree

Weekly Downloads

2

Version

1.0.1

License

BSD-2-Clause

Last publish

Collaborators

  • rameshrm