mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-06-17 03:19:22 -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
|
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…
Add table
Add a link
Reference in a new issue