Question: A linked list is used in both Stack and Queue. Explain clearly with a clear drawing how the linked list works with stack and queue?
A linked list is used in both Stack and Queue. Explain clearly with a clear drawing how the linked list works with stack and queue? How come the stack is inserting the item in or removing from the top and the queue is inserting in and removing from the end or front? How are these working with the linked lists? You need to explain clearly with all the details AND required examples and drawings.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
