mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 18:08:01 +00:00
Update bst challenge control flow (#146)
This commit is contained in:
@@ -21,7 +21,8 @@ class Bst(object):
|
||||
if self.root is None:
|
||||
self.root = Node(data)
|
||||
return self.root
|
||||
return self._insert(self.root, data)
|
||||
else:
|
||||
return self._insert(self.root, data)
|
||||
|
||||
def _insert(self, node, data):
|
||||
if node is None:
|
||||
|
||||
Reference in New Issue
Block a user