Skip to content

Instantly share code, notes, and snippets.

View Sukhrobjon's full-sized avatar

Sukhrob Golibboev Sukhrobjon

View GitHub Profile
def evaluate(self, node=None) -> float:
"""
Calculate this tree expression recursively
Args:
node(BinaryTreeNode): starts at the root node
"""
# initialize
if node is None: