Skip to content

Instantly share code, notes, and snippets.

@chinying
Created March 15, 2017 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chinying/e5dafafcad35002afd971ee2c579a16f to your computer and use it in GitHub Desktop.
Save chinying/e5dafafcad35002afd971ee2c579a16f to your computer and use it in GitHub Desktop.
scrub level tree traversal stuff, for checking purposes mostly
def inOrder(self, node):
if (node.left):
self.inOrder(node.left)
print(node)
if (node.right):
self.inOrder(node.right)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment