Live Online Classes in Design, Coding & AI — Small Classes, Free Retakes
Power BI Fundamentals - Create visualizations and dashboards from scratch
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
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