Skip to content

Instantly share code, notes, and snippets.

@tarlanahad
Last active February 10, 2018 17:12
Show Gist options
  • Save tarlanahad/a6124d2cf16f7f22d4427494969ab680 to your computer and use it in GitHub Desktop.
Save tarlanahad/a6124d2cf16f7f22d4427494969ab680 to your computer and use it in GitHub Desktop.
public void add(int Key) {
Node newNode = new Node(Key);
if (Root == null) {
Root = newNode;
CurrentSize++;
return;
}
addHelper(Root, newNode);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment