Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Python Data Structures: Stacks, Queues, and Deques

via LinkedIn Learning

Overview

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
1. Stacks
  • Stacks: An introduction
  • The push() operation
  • The pop() operation
  • The peek() operation
  • Solution: Palindrome checker
2. Queues
  • Queues: An introduction
  • List-based queues
  • Stack-based queues
  • Node-based queues
  • Solution: Printer problem
3. Deques
  • Deques: An introduction
  • Appending lists with deque
  • rotate(), reverse(), and extend()
Conclusion
  • Next steps

Taught by

Erin Allard

Reviews

4.6 rating at LinkedIn Learning based on 55 ratings

Start your review of Python Data Structures: Stacks, Queues, and Deques

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.