Problem statement: what do you mean by tree traversal?
- The process of visiting all nodes of a tree is called tree traversal.
- Types of tree traversal?
- Preorder (DLR) Traversal [D-data, L-left, R-right]
- Inorder (LDR) Traversal
- Postorder (LRD) Traversal
No comments:
Post a Comment