Problems
Stacks¶
- In what order are operations performed with a stack?
- What are the basic operations for a stack?
- What is a real life example of a stack?
- What are the time complexities of the operations?
- In what ways can you implement a stack?
- Draw the end state of the following stack:
1 2 3 4 5 6 7 8
push(3) push(3) pop() push(7) pop() push(9) push(2) pop()
Queues¶
- In what order are operations performed with a queue?
- What are the basic operations for a queue?
- What are the time complexities of the operations?