Post order traversal of a given binary search tree T produces following sequence of keys : Which one of the following sequences of keys can be the result of…
Post order traversal of a given binary search tree T produces following sequence of keys : Which one of the following sequences of keys can be the result of an in-order traversal of the tree T?
Show answerHide answer
Correct answer: (D) 3, 4, 5, 7, 9, 14, 15, 16, 17, 18, 20
Explanation
An in-order traversal of a binary search tree always gives the keys in ascending order, so the in-order sequence is 3, 4, 5, 7, 9, 14, 15, 16, 17, 18, 20.