Tree traversal is a process of visiting all the nodes of a tree. All the nodes are connected via edges (links), where we always start from the root (head) of the node.
The three ways to traverse a tree:
- In-order Traversal
- Pre-order Traversal
- Post-order Traversal