Skip to content

Instantly share code, notes, and snippets.

View dylmarcor's full-sized avatar

Dylan Corbett dylmarcor

View GitHub Profile
'use strict';
function BinarySearchTree() {
this.root = null;
}
BinarySearchTree.prototype.insertNode = function (val) {
var node = {
data : val,