Recent questions tagged queue

0 votes
1 answer
61
0 votes
1 answer
64
1 votes
1 answer
66
How many enqueue and dequeue operations are required to perform a pop operation if Q1 contains n element initially?
0 votes
0 answers
70
Is priority queue work efficiently with sorted array than unsorted array and heap for insertion and deletion operation? Then why do we apply priority queue in heap specia...
2 votes
3 answers
71
____ number of queues are needed to implement a stack$1$$2$$3$$4$
0 votes
1 answer
72
WHAT IS THE TIME COMPLEXITY TO ENQUEUE AN ELEMENT IF THE QUEUE IS IMPLEMENTED AS A CIRCULAR QUEUE AND WE HAVE GOT ONLY ONE POINTER TO FRONT ELEMENT??
0 votes
0 answers
73
1) How many stacks are needed to implement a queue .2) How many queue are needed to implement a stack.
0 votes
1 answer
75
1 votes
2 answers
76
What are the minimum number of pointers required to implement a stack using single ended queue ( the queue is NOT a dequeue )?
4 votes
1 answer
84
In implementation of queue using stack, deletion of second element from front take Ο(1) time, when insertion take Ο(n) time.Which of the following is correct ?True / Fa...
1 votes
1 answer
85
3 votes
3 answers
86
What are the minimum enqueue and dequeue operations needed to perform pop operation for a stack which is implemented with two queues if there are already 10 elements in t...