+1 vote
in Data Structures & Algorithms I by (110k points)
How many stacks are required for evaluation of prefix expression?

(a) one

(b) two

(c) three

(d) four

The doubt is from Application of Stacks in section Application of Stacks of Data Structures & Algorithms I

The question was posed to me during a job interview.

1 Answer

+1 vote
by (444k points)
selected by
 
Best answer
Correct choice is (b) two

The best explanation: 2 stacks are required for evaluation of prefix expression, one for integers and one for characters.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...