Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Build AI Apps with Azure, Copilot, and Generative AI — Microsoft Certified
Overview
Build a Learning Habit
Download Class Central's free printable study calendar
Download for Free
Learn about the top three linear data structures—stacks, queues, and deque—and build your own data structures in Python.
Syllabus
Introduction
- Python data structures: Stacks, queues, and deques
- What you should know
- Explore the CoderPad environment
- Stacks: An introduction
- The push() operation
- The pop() operation
- The peek() operation
- Solution: Palindrome checker
- Queues: An introduction
- List-based queues
- Stack-based queues
- Node-based queues
- Solution: Printer problem
- Deques: An introduction
- Appending lists with deque
- rotate(), reverse(), and extend()
- Next steps
Taught by
Erin Allard