Opening discussion: review stacks and queues with the activities below
Queue operations:
- Create a new, empty queue
q = Queue()
- Enqueue 302 to the queue
q.enqueue(302)
- Enqueue 176 to the queue
q.enqueue(176)
- Report the front of the queue
q.first()
- Dequeue the queue
q.dequeue()
- Enqueue 59 to the queue
q.enqueue(59)
- Dequeue the queue
q.dequeue()
- Check if the queue is empty
q.isEmpty()
- Report the front of the queue
q.first()
- Enqueue 2 to the queue
q.enqueue(2)
- Data structures review - Priority Queues
- Data Structures Review: Dictionaries
- Data structures review - Hash Tables
- Group Activity for today:
Anatoliy Youssef Hari