1.

For the expression (7-(4*5))+(9/3) which of the following is the post order tree traversal?(a) *745-93/+(b) 93/+745*-(c) 745*-93/+(d) 74*+593/-This question was addressed to me in unit test.This is a very interesting question from Tree Traversal in portion Trees of Discrete Mathematics

Answer»

Right choice is (c) 745*-93/+

To explain: FIRST build a BINARY TREE for the expression then find out the postorder traversal of that tree and after that the ANSWER will be 745*-93/+.



Discussion

No Comment Found

Related InterviewSolutions