The Gateway to Computer Science Excellence
+1 vote
194 views

There is given a infix expression:

                                                             ${\color{Red} {1}}$

$A+B\times C/\left ( \left ( D+E \right )+F\times G \right )$

While converting infix expression to postfix expression number of symbols in the stack at indicated ${\color{Red} {point-1}}$ infix expression (assume stack is initially empty) ______________


they told $5$, but is it correct? Can anyone give some explanation??

in DS by Veteran (119k points)
edited by | 194 views

2 Answers

+1 vote
Yes it is 5
by (59 points)
0
how??
0
Can you give the explanation please.
0

I got  ABC*DE+FG*+/+ as postfix expression with stack size 6, please verify it.

0 votes

5 is right

by Boss (36.5k points)
+1

I think it will be ABCxDE+FGx+/+

Related questions

+8 votes
5 answers
1
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,324 answers
198,405 comments
105,169 users