Created
August 19, 2013 04:11
-
-
Save alcedo/6265696 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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