Search results for stack

49 votes
7 answers
1
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 ++$
22 votes
7 answers
6
What is the minimum number of stacks of size $n$ required to implement a queue of size $n$?OneTwoThreeFour
33 votes
6 answers
8
32 votes
5 answers
9
Assume that the operators $+, -, \times$ are left associative and $^\hat{}$ is right associative. The order of precedence (from highest to lowest) is $ \ ^\hat{}, \times,...
10 votes
3 answers
18
Consider the following sequence of operations on an empty stack.$$\textsf{push}(54);\textsf{push}(52);\textsf{pop}();\textsf{push}(55);\textsf{push}(62);\textsf{s}=\texts...
27 votes
6 answers
19
The result evaluating the postfix expression $10 \ 5 + 60 \ 6 / * 8 -$ is $284$$213$$142$$71$
44 votes
9 answers
20
Compute the post fix equivalent of the following expression $3^*\log(x+1)-\frac{a}{2}$