Skip to content

Instantly share code, notes, and snippets.

@MapleCCC
Last active June 23, 2019 07:55
Show Gist options
  • Save MapleCCC/584a9c7a95a2cc0ac0e72520d5c0d74e to your computer and use it in GitHub Desktop.
Save MapleCCC/584a9c7a95a2cc0ac0e72520d5c0d74e to your computer and use it in GitHub Desktop.
In [1]: tree = BinarySearchTree()
In [2]: tree.insert(2).insert(1).insert(4).insert(3).insert(6).delete(6)
In [3]: tree
Out[3]: Tree(Node(2, left=Node(1), right=Node(4, left=Node(3))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment