Recent questions tagged stack

0 votes
0 answers
181
How many times * is pushed into stack ? a detail answer will be welcomed.
0 votes
2 answers
184
Which of the following permutation can be obtained in the output (in the same order) using a stack assuming that the input is the sequence $1, 2, 3, 4$ in that order?3, 4...
0 votes
1 answer
186
The postfix expression for the infix expression$$A + B*C/D +E$$isAB+*CD/E+ABC*D/+E+AB+C*D/E+A+*BCD/E+
2 votes
1 answer
187
4 votes
1 answer
188
9 votes
1 answer
189
An item that is read as input can either be pushed to the stack and later popped and printed or printed directly. Number of print permutations that can be obtained using ...
2 votes
2 answers
190
Convert the infix to postfix and prefix expression1) log3! ^log4 *log log 6/7*4!2)log3!^sin 2*cos 3
1 votes
1 answer
194
Is any operations in stack array implementation is linear time complexity?If there what is operation and explain abt that?
3 votes
2 answers
195
Which of the following is not an inherent application of stack?Implementation of recursionEvaluation of a postfix expressionJob schedulingReverse a string
2 votes
2 answers
197
Convert the following infix expression into its equivalent post fix expression $ (A + B$^$ D) / (E – F) + G $$ABD$^ $+EF – / G+$$ABD + $^$EF – / G+$$ABD +$ ^$EF / �...
2 votes
1 answer
199
If we have to construct the expression tree from this expression (3 + ((5+9)*2)) then what will be the order of push and pop operation on a stack ?Explain what to do with...
1 votes
2 answers
200
Which of the following permutations can be obtained in the output using a stack of size 3 elements assuming that input, sequence is 1, 2, 3, 4, 5?3, 2, 1, 5, 45, 4, 3, 2,...
0 votes
2 answers
201
Given an empty stack, after performing push(1), push(2), pop, push(3), push(4), pop, pop, push(5), pop, what is the value of the top of the stack?4321
1 votes
1 answer
202
1 votes
2 answers
203
The following postfix expression is evaluated using a stack. 823^/23*+51*- . The top two elements of the stack after first * is evaluated6,15, 73,21, 5
2 votes
2 answers
204
9 votes
2 answers
205
The queue data structure is to be realized by using stack. The number of stacks needed would beIt cannot be implemented2 stacks4 stacks1 stack
7 votes
1 answer
206
If the sequence of operations - push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop are performed on a stack, the sequence of popped out values2,2,1...
4 votes
2 answers
207
The infix expression $A+(B-C)^*D$ is correctly represented in prefix notation as$A+B-C^*D$$+A^*-BCD$$ABC-D^*+$$A+BC-D^*$