Binary Search Tree (Implementation)

create a binary search tree and create a node in a tree (Reading time: 1 minute)

We'll cover the following...

Before we write the tree, we need to create the constructor function for each node.

Press + to interact
function Node(data) {
this.data = data;
this.left = null;
this.right = null;
}

Every ...