Last active
January 28, 2017 12:34
-
-
Save themoah/df15253418c2c43f9e8fdcdaa54b39cb 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
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