mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
rename files to easily grouping
This commit is contained in:
parent
52752fb931
commit
5161f9d08a
@ -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…
x
Reference in New Issue
Block a user