Java Question:
Question 3: Consider the following sequences of enqueue and dequeue, and push and pop. Illustrate the linked list at every sequence.
enqueue(3); dequeue(); enqueue(4); dequeue(); enqueue(2); enqueue(7); enqueue(5); enqueue(9); dequeue();
push(3); pop(); push(4); pop(); push(1); push(7); push(5); pop(); pop();