mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-30 04:36:08 -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
|
self.right = new_node
|
||||||
else:
|
else:
|
||||||
self.left = self.left._add(value)
|
self.left = self.left._add(value)
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +34,7 @@ class Node(object):
|
|||||||
if self.item == value:
|
if self.item == value:
|
||||||
return True # or self
|
return True # or self
|
||||||
|
|
||||||
found = False # or False, thats diff from BST
|
found = False # or None, thats diff from BST
|
||||||
if self.left:
|
if self.left:
|
||||||
found = self.left._search(value)
|
found = self.left._search(value)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user