Postorder traversal of a given binary search tree, produces the following sequence of keys
Which one of the following sequences of keys can be the result of an in-order traversal of the tree ?
View worked solution
Answer: A
A fundamental property of any Binary Search Tree (BST) is that its in-order traversal always yields the keys in strictly ascending (sorted) order.
Let's examine the given options to see which sequence is sorted in ascending order:
- Option A: — This sequence is sorted in ascending order.
- Option B: — Not sorted (e.g., appears after ).
- Option C: — Not sorted.
- Option D: — Not sorted in ascending order.
Thus, only the sequence in Option A can represent the in-order traversal of the BST .
Free practice · Your answers on this page are not saved.
