Skip to content

Instantly share code, notes, and snippets.

@lironsade
Created May 14, 2017 18:55
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 lironsade/fe45802b156e377ab9e81e374b3e6be8 to your computer and use it in GitHub Desktop.
Save lironsade/fe45802b156e377ab9e81e374b3e6be8 to your computer and use it in GitHub Desktop.
void setLeft(Node left) {
this.left = left;
if (left != null) {
this.left.setDad(this);
this.leftHeight = left.getHeight();
} else {
this.leftHeight = -1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment