npm.io
1.0.1 • Published 12 years ago

array-to-btree

Licence
BSD-2-Clause
Version
1.0.1
Deps
2
Vulns
0
Weekly
0
Stars
1

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);
}

Keywords