Skip to content

Instantly share code, notes, and snippets.

@ssundarraj
Created January 1, 2016 18:50
Show Gist options
  • Save ssundarraj/c1eb1634da9ca7a390bb to your computer and use it in GitHub Desktop.
Save ssundarraj/c1eb1634da9ca7a390bb to your computer and use it in GitHub Desktop.
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