in Programming in C
5,440 views
2 votes
2 votes

How is ans 15 for this question Please can anybody solve this 

in Programming in C
5.4k views

1 comment

1
1

1 Answer

1 vote
1 vote
Best answer

The question asked is incomplete, they should ask "what is the sum of different height that stack should have while infix to postfix conversion."

The resultant postfix will be: - PQ+RS+*T/ABC+*+

and the different height will be ,2,3,4,5;

sum is 1 + 2 + 3 + 4 + 5 = 15.

Ans = 15

selected by

4 Comments

Yes that's what, so stack of size 5 should suffice right?
0
0
Yes, because it will not reach up to more than 5.
0
0
Thanks a lot everyone
0
0

Related questions