• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | GATE-CS-2005 | Question 33

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?

(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

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments