GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2022

GATE 2022 · CS · NAT · 2 marks · Programming and Data Structures › Stacks and Queues

GATE 2022 Computer Science and Information Technology question: Consider the queues Q 1 containing four elements and Q 2 containing none (shown as the…

Consider the queues containing four elements and containing none (shown as the Initial State in the figure). The only operations allowed on these two queues are Enqueue(Q, element) and Dequeue(Q). The minimum number of Enqueue operations on required to place the elements of in in reverse order (shown as the Final State in the figure) without using any additional storage is __________.

figure

Show answer

Official answer: 0

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion