Spaces:
Runtime error
Runtime error
add display tree
Browse files
app.py
CHANGED
@@ -137,12 +137,12 @@ def insert(self, val):
|
|
137 |
"""
|
138 |
|
139 |
display_code = r"""
|
140 |
-
def
|
141 |
if self.left:
|
142 |
-
self.left.
|
143 |
print(self.val)
|
144 |
if self.right:
|
145 |
-
self.right.
|
146 |
"""
|
147 |
|
148 |
def docgen_func(function_code):
|
|
|
137 |
"""
|
138 |
|
139 |
display_code = r"""
|
140 |
+
def display_tree(self):
|
141 |
if self.left:
|
142 |
+
self.left.display_tree()
|
143 |
print(self.val)
|
144 |
if self.right:
|
145 |
+
self.right.display_tree()
|
146 |
"""
|
147 |
|
148 |
def docgen_func(function_code):
|