Created
March 15, 2017 19:58
-
-
Save chinying/e5dafafcad35002afd971ee2c579a16f to your computer and use it in GitHub Desktop.
scrub level tree traversal stuff, for checking purposes mostly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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