Skip to content

Instantly share code, notes, and snippets.

@sarahzhao25
Created January 17, 2018 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarahzhao25/345f520cd9d2e7355a66f14e96ccbf41 to your computer and use it in GitHub Desktop.
Save sarahzhao25/345f520cd9d2e7355a66f14e96ccbf41 to your computer and use it in GitHub Desktop.
constructor.js
function BinarySearchTree(value) {
this.value = value;
this.left = this.right = null;
this.parent = {node: null, side: ‘’};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment