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 __________.

Show answer
Official answer: 0