Given a queue of objects of type int write the output and th
Given a queue of objects of type int, write the output and the queue contents at the return of each function call. The queue is initially empty. (Assume dequeue() doesn\'t return anything)
Solution
Function call Output Queue size() 0 nothing enqueue(1) 1 is inserted 1 front() 1 1 dequeue 1 is deleted nothing enqueue(3) 3 is inserted 3 enqueue(5) 5 is inserted 3 5 empty() False 3 5 dequeue() 3 is deleted 5 front 5 is front 5 empty() False 5