Binary Tree
Definition
It is a collection of nodes that are connected by edges and has a hierarchical relationship between the nodes.
Rule of Binary Trees
A tree is considered binary trees if it has below properties:
- At most 2 children per node
- Exactly 1 root
- Exactly 1 path between root and any node
- There must be no duplicate nodes