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

Function preorder

binary_search_tree.py:184–192  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

182
183
184def preorder(node):
185 # N L R : Node , Left, Right
186 if node is None:
187 return
188 print(node.info)
189 if node.left:
190 preorder(node.left)
191 if node.right:
192 preorder(node.right)
193
194
195# Levelwise

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected