Tree traversal is a process to visit all the nodes of a tree.
Because, all nodes are connected via edges (links) we always start from
the root (head) node. There are three ways which we use to traverse a
tree −
- In-order Traversal
- Pre-order Traversal
- Post-order Traversal
No comments:
Post a Comment