stmnk commited on
Commit
9d08bfc
·
1 Parent(s): 8d9fac4

add prenex display tree

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- print(self.val)
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):