Skip to content

Instantly share code, notes, and snippets.

@alcedo
Created August 19, 2013 04:11
Show Gist options
  • Save alcedo/6265696 to your computer and use it in GitHub Desktop.
Save alcedo/6265696 to your computer and use it in GitHub Desktop.
function Node (data) {
this.left = void(0);
this.right = void(0);
this.data = data;
}
var root = new Node ('F');
root.left = new Node('B');
root.right = new Node('G');
root.left.left = new Node('A');
root.left.right = new Node('D');
root.left.right.left = new Node('C');
root.left.right.right = new Node('E');
root.right.right = new Node('I');
root.right.right.left = new Node('H');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment