1.

Using the evaluation of prefix algorithm, evaluate +-9 2 7.(a) 10(b) 4(c) 17(d) 14The question is from Application of Stacks in section Application of Stacks of Data Structures & Algorithms IThis question was addressed to me in an interview for job.

Answer» RIGHT choice is (d) 14

Easiest explanation - Using the EVALUATION of PREFIX ALGORITHM, +-9 2 7 is evaluated as 9-2+7=14.


Discussion

No Comment Found

Related InterviewSolutions