MCPcopy Create free account
hub / github.com/geekcomputers/Python / postorder

Function postorder

binary_search_tree.py:162–170  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

160
161
162def postorder(node):
163 # L R N : Left , Right, Node
164 if node is None:
165 return
166 if node.left:
167 postorder(node.left)
168 if node.right:
169 postorder(node.right)
170 print(node.info)
171
172
173def inorder(node):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected