What is written by the following algorithm?
WHILE (NOT IsEmtpy(myQueue))
Write item, ‘ ‘
When the above-mentioned algorithm is executed following is printed:
This is because after the 5, 4 and 4 is enqueued in the queue named as myqueue, the elements 5, 4 and 4 is inserted into the queue where front points to 5 and rear points to 4.
When the first dequeue operation is