Skip to content

Instantly share code, notes, and snippets.

View tree-orders.py
def inorder(node):
if node.left != None:
inorder(node.left)
print node.cargo
if node.right != None:
inorder(node.right)
def preorder(node):