Binary Tree

Binary Tree #

class BinaryTree:
    self.root = None
    self.depth = None

class Node:
    self.value = None
    self.left = None    # left child
    self.right = None   # right child

This StackOverflow thread has a list of applications where binary trees are used.