Skip to content

Instantly share code, notes, and snippets.

@themoah
Last active January 28, 2017 12:34
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 themoah/df15253418c2c43f9e8fdcdaa54b39cb to your computer and use it in GitHub Desktop.
Save themoah/df15253418c2c43f9e8fdcdaa54b39cb to your computer and use it in GitHub Desktop.
find (root, 3)
find(node current, Data value)
if (current.value == null) {
return null;
}
if else(current.value == value) {
return current
}
if else(value < current.value) {
return find(current.value, left)
}
return find(current.right, value)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment