Facebook Interview Report
- 0of 0 votes
AnswersConvert infix to postfix and evaluate postfix expression.
- user October 28, 2018 in United States
For example: 4 // number of variables
g = 2
p = 3
t = 1
w = 2
3 // number of equations
g + p x t - w x p
t - g + t - w
e + t x t - m
Output: -1 //for first equation
-2 //for second equation
Compilation Error // for third equation| Report Duplicate | Flag | PURGE
Facebook Testing / Quality Assurance - 0of 0 votes
AnswersConvert infix to postfix and evaluate postfix expression.
- user October 28, 2018 in United States
For example: Input:
3 // number of variables
a = 1
b = 2
c = 2
2 // number of equations
a x b + a x c + b x c
a x c - b / c + c x c
Output: 8 //for first equation
5 // for second equation| Report Duplicate | Flag | PURGE
Facebook Testing / Quality Assurance
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.