Recent questions tagged stack

2 votes
3 answers
211
3 votes
3 answers
212
1 votes
2 answers
213
What is the complexity of evaluating an infix expression having n operators?
1 votes
1 answer
217
44 votes
9 answers
218
Compute the post fix equivalent of the following expression $3^*\log(x+1)-\frac{a}{2}$
0 votes
1 answer
219
4 votes
3 answers
220
What is the maximum number of parenthesis that will appear on the stack at any one time for parenthesis expression given by$( ( ) \; ( ( ) ) \; ( ( ) ) ...
0 votes
2 answers
221
suppose expression is like : ((a+b)+((c+d))), so how to find duplicate parenthesis in the given expression ?
27 votes
6 answers
223
The result evaluating the postfix expression $10 \ 5 + 60 \ 6 / * 8 -$ is $284$$213$$142$$71$
0 votes
2 answers
225
For every push pop>3 units time required. Do continuously 4 push afterward 4 pop. Then what is the average life time of stack.
49 votes
7 answers
231
The postfix expression for the infix expression $A+B*(C+D)/F+D*E$ is:$AB + CD + *F/D +E*$$ABCD + *F/DE* ++$$A * B + CD/F *DE ++$$A + *BCD/F* DE ++$
33 votes
6 answers
233
28 votes
3 answers
235
Which of the following is essential for converting an infix expression to the postfix form efficiently?An operator stackAn operand stackAn operand stack and an operator s...
32 votes
5 answers
239
Assume that the operators $+, -, \times$ are left associative and $^\hat{}$ is right associative. The order of precedence (from highest to lowest) is $ \ ^\hat{}, \times,...
19 votes
4 answers
240
The best data structure to check whether an arithmetic expression has balanced parentheses is aqueuestacktreelist