Skip to content

🌵 Binary Tree

For Binary Tree implementation, there are 3 main components. Binary Node inherits from Node, so the components in Tree implementation are also available in Binary Tree.

🌿 Node

  • BinaryNode, Node with binary tree rules

🎄 Binary Tree

  • BinaryTree, wrapper around BinaryNode, providing high-level APIs to build, iterate, query, and export the entire tree structure

✨ Constructing Binary Tree

  • From list, using flattened list structure

âž° Traversing Binary Tree

  • In-Order Traversal