in Algorithms retagged by
613 views
1 vote
1 vote
What is the stack size while implementing this infix to postfix expression using operator stack?

a+b+c+d+e
in Algorithms retagged by
613 views

5 Comments

I don't know the answer...please explain the procedure
0
0

@kumar.dilip 

At any time only one + will be there in the stack right because ((((a+b)+c)+d)+e)

ab+c+d+e+ isn't this correct??

1
1
According to me it's 1...

But if the expression is like this

 

A^B^C^D^E

Then how many stack units ?
0
0
$a^{(b^{(c^{(d^e)})})}$

I think all the power operators will be on the stack because of right to left associative nature
0
0
kindly explian?
0
0

Please log in or register to answer this question.

Related questions