mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-22 16:31:15 -04:00
Fun day, but i miss rust already 😅 (#36)
This commit is contained in:
parent
0f455a0322
commit
5732cfcc61
3 changed files with 106 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Node(object):
|
|||
self.right = new_node
|
||||
else:
|
||||
self.left = self.left.add(value)
|
||||
return self # without this, it doesn't add!
|
||||
return self
|
||||
|
||||
def search(self, item):
|
||||
if self.value == item:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue