Given a traversal result abcdfge and following statements -
- Above traversal is PreOrder Traversal
- Above traversal is PostOrder Traversal
- Above traversal is InOrder Traversal
- For the given tree, a is the root of the tree
- For the given tree, e is the root of the tree
Which of the above statements is/are correct?
Given an algorithm to traverse a tree Traverse(Node v){ visit(v); for each child w of v Traverse(w); }
Reveal answer
Fill a bubble to check yourself