Construct a binary search tree by using postorder sequence given below. Postorder: 2, 4, 3, 7, 9, 8, 5.

Construct a binary search tree by using postorder sequence given below.
Postorder: 2, 4, 3, 7, 9, 8, 5.
A.
B.
C.
D.
 
Answer: B
Explanation: Postorder sequence is 2, 4, 3, 7, 9, 8, 5.
Inorder sequence is the ascending order of nodes in Binary search tree. Thus, Inorder sequence is 2, 3, 4, 5, 7, 8, 9. The tree constructed using Postorder and Inorder sequence is
 

Tìm kiếm

Back
Top