This is an implementation of a Binary Search Tree in JavaScript.
This goes with my post Binary Search Trees and Graph Traversal.
The file BSTNode.js
is an implementation of a node on a binary search tree.
The file BSTGraph.js
is an implementation of operations you can do on a tree including adding, removing, finding, and traversing.
The file DemoGraph.js
is a sample program that uses the binary search tree implementation.