Postfix Expression

668 views
Let The value of below expression is A.

6 2 3 + - 3 8 2 / + * 3 ^ 3 +

and Let the value of below expression is Y:

2 A * 16 +

What is value of sqrt(Y)

Ans. 16
• 🚩 Duplicate | | 💬 “https://gateoverflow.in/273171/madeeasy-test-series-programming-%26-ds-stack”
in DS 1 flag
1
I am getting answer as 26.60. Please Verify anyone. I am not getting the required answer :(
0
I am getting the same..can you post the solution?
0
In solution they simply say A =120 without giving solution and further calculate value of Y
1
I don't think they are right... :/
0
0

|6|2|3|  +
|6|5|  -             (2+3=5)
|1|                   (6-5=1)
|1|3|8|2| /
|1|3|4|+          (8/2=4)
|1|7|*             (3+4=7)
|7|                 (1*7=7)

|7|3|^           (7^3 = 343)
|343|3|+
|346|

Therefore A=346

Y= 2*346+16 = 708

0
Yes it is 26.60..but answer key is 16 :/
0
the answer is $26.60$ and $16$ is wrong i think.
0

16 is wrong for sure;

Related questions

1
855 views
What is time and space complexity to evaluate postfix expression ?
Conver the following infix to Postfix and Prefix $log ( 3 ! )^ {log4} *log log ((6/7)*4+x)!$ $sin 2x cos (3x+4)$ Please use stack method to solve . Diagram would be appreciated