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