1.

For a binary tree the first node visited in in-order and post-order traversal is same.(a) True(b) FalseMy question is taken from Binary Trees topic in portion Binary Trees of Data Structures & Algorithms IThis question was addressed to me during an internship interview.

Answer»

The correct option is (b) False

The explanation is: Consider a BINARY tree,

Its in-order TRAVERSAL – 13 14 16 19

Its post-order traversal- 14 13 19 16. Here the first node VISITED is not same.



Discussion

No Comment Found

Related InterviewSolutions