Answer
Stacks and queues can be thought of as special types of lists.
Work Step by Step
Stacks and queues can be thought of as special types of lists. In the case of
a general list, entries can be inserted and removed at any location.
In the case of a stack, entries can be inserted and removed only at the head. In the case of a queue, entries can be inserted only at the tail, and entries can be removed only at the head.