1.

For the given expression tree, write the correct postfix expression.(a) abc*+(b) abc+*(c) ab+c*(d) a+bc*I want to ask this question from Application of Stacks topic in section Application of Stacks of Data Structures & Algorithms IThis question was addressed to me during an interview for a job.

Answer» CORRECT answer is (a) ABC*+

To explain: EVALUATING the given expression TREE GIVES the infix expression a+b*c. Converting it to postfix, we get, abc*+.


Discussion

No Comment Found

Related InterviewSolutions