Created
January 1, 2016 18:50
-
-
Save ssundarraj/c1eb1634da9ca7a390bb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class BinaryTreeNode(object): | |
def __init__(self, data=None, left=None, right=None): | |
self.data = data | |
self.left = left | |
self.right = right | |
class TreeNode(object): | |
def __init__(self, data=None, children=[]): | |
self.data = data | |
self.children = children |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment