binarytreenode
v0.3.1
Published
Binary Tree Node class for Javascript
Downloads
2
Readme
Usage
const BinaryTreeNode = require('binarytreenode');
let node = new BinaryTreeNode('B');
node.insertLeft('A');
node.insertRight('C');
console.log(node.value); //B
console.log(node.left.value); //A
console.log(node.right.value); //C