Only infix expression can be made into an expression tree.

Category: QuestionsOnly infix expression can be made into an expression tree.
Editor">Editor Staff asked 5 months ago

Only infix expression can be made into an expression tree.
 
(a) true
 
(b) false
 
The doubt is from Trees in portion Trees of Data Structures & Algorithms I
 
I had been asked this question in an online interview.

1 Answers
Editor">Editor Staff answered 5 months ago

The correct answer is (b) false
 
For explanation: All infix, prefix and postfix expressions can be made into an expression tree using appropriate algorithms.


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