mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-02 06:46:18 -04:00
rename files to easily grouping
This commit is contained in:
parent
52752fb931
commit
5161f9d08a
6 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ class Node(object):
|
|||
self.right = new_node
|
||||
else:
|
||||
self.left = self.left._add(value)
|
||||
|
||||
return self
|
||||
|
||||
|
||||
|
@ -33,7 +34,7 @@ class Node(object):
|
|||
if self.item == value:
|
||||
return True # or self
|
||||
|
||||
found = False # or False, thats diff from BST
|
||||
found = False # or None, thats diff from BST
|
||||
if self.left:
|
||||
found = self.left._search(value)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue