Chapter 4: Stacks and Queues

4.2 Stack

4.2.1 The Stack ADT 4.2.2 A Simple Array-Based Implementation

4.3 Queues

4.3.1 The Queue ADT 4.3.2 A Simple Array-Based Implementation

4.4 Linked Lists

4.4.1 Singly Linked Lists 4.4.2 Implementing a Stack with a Singly Linked List 4.4.3 Implementing a Queue with a Singly Linked List

4.5 Double-Ended Queue (Deque)

4.5.1 The Deque ADT 4.5.2 Implementing a Deque with a Doubly Linked List
4.5.3 The Adapter Design Pattern
Stack method
Deque implementation
size()
isEmpty()
top()
push(o)
pop()
size()
isEmpty()
first()
insertFirst(o)
removeFirst()