...
Question 9492 – Binary-search-tree
November 26, 2023
Question 9433 – Binary-search-tree
November 26, 2023
Question 9492 – Binary-search-tree
November 26, 2023
Question 9433 – Binary-search-tree
November 26, 2023

Question 9431 – Binary-search-tree

Postorder traversal of a given binary search tree T produces the following sequence of keys

   10, 9, 23, 22, 27, 25, 15, 50, 95, 60, 40, 29 

Which one of the following sequences of keys can be the result of an inorder traversal of the tree T?

Correct Answer: A

Question 9 Explanation: 
Inorder traversal of any binary search tree is the sorted sequence of element in ascending order.
A
9, 10, 15, 22, 23, 25, 27, 29, 40, 50, 60, 95
B
9, 10, 15, 22, 40, 50, 60, 95, 23, 25, 27, 29
C
29, 15, 9, 10, 25, 22, 23, 27, 40, 60, 50, 95
D
95, 50, 60, 40, 27, 23, 22, 25, 10, 9, 15, 29
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!