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
class Node(object): | |
""" | |
Tree node: left and right child + data which can be any object | |
""" | |
def __init__(self, data): | |
""" | |
Node Constructor | |
@param data node data object | |
""" | |
self.left = None |