Created
October 7, 2020 09:40
-
-
Save shiyanshirani/8180e4cac6d0e68300773fe067d20b8f to your computer and use it in GitHub Desktop.
Revisions
-
shiyanshirani created this gist
Oct 7, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ def search_helper(self, start_node, find_val): if start_node: if start_node.value == find_val: return True elif start_node.value > find_val: return self.search_helper(start_node.left, find_val) else: return self.search_helper(start_node.right, find_val) else: return False