947 views
0 0 votes
How many queues are needed to implement a stack. Consider the situation where no other data structure like arrays, linked list is available to you.give the pseudo code if possible

Please log in or register to answer this question.

Position:
Show:

Related questions

11 11 votes
1 1 answer
224
224 views
GO Classes asked Jul 11
224 views
Which of the following can be the number of nodes in a complete binary tree?$2$ $5$ $7$ $8$
8 8 votes
3 3 answers
222
222 views
GO Classes asked Jul 9
222 views
Consider the following postfix expression:$\texttt{1 2 3 + 4 5 * * +}$Which of the following fully parenthesized infix expressions is equivalent to it?$\texttt{( 1 + ( ( ...
6 6 votes
3 3 answers
167
167 views
GO Classes asked Jul 9
167 views
Consider the following prefix expression:$\texttt{+ * 2 3 / 8 4}$Which of the following is its correct postfix form?$\texttt{2 3 * 8 4 / +}$$\texttt{+ * 2 3 / 8 4}$$\text...
7 7 votes
2 2 answers
165
165 views
GO Classes asked Jul 9
165 views
For the expression:$\texttt{2 * 3 + 8 / 4}$Assume the expression tree has $\texttt{+}$ as the root, $\texttt{*}$ as the left subtree root, and $\texttt{/}$ as the right s...