1.

An expression tree is a kind of?(a) Binary search tree(b) Fibonacci tree(c) Binary tree(d) TreapI'd like to ask this question from Trees in division Trees of Data Structures & Algorithms IThis question was posed to me in a job interview.

Answer»

The correct CHOICE is (c) BINARY tree

The BEST explanation: The EXPRESSION tree is a binary tree. It contains operands at leaf nodes and REMAINING nodes are filled with operators. The operands and the operators can be arranged in any order (ascending, descending).



Discussion

No Comment Found

Related InterviewSolutions