An expression tree is created using?

Category: QuestionsAn expression tree is created using?
Editor">Editor Staff asked 5 months ago

An expression tree is created using?
 
(a) postfix expression
 
(b) prefix expression
 
(c) infix expression
 
(d) paranthesized expression
 
This is a very interesting question from Trees in portion Trees of Data Structures & Algorithms I
 
This question was posed to me in an interview for internship.

1 Answers
Editor">Editor Staff answered 5 months ago

The correct choice is (a) postfix expression
 
For explanation: A postfix expression is converted into an expression tree by reading one symbol at a time and constructing a tree respectively.


Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17
Articles: 40701