Q. 3 [4 marks] What are the contents of queue and stack after the following sequence of operations? 1) enqueue(30), 2) enqueue(20), 3) push(dequeue()), 4) enqueue(30), 5) push(dequeue()), 6) push(20), 7)enqueue(pop())

Answer :

Other Questions