The Best Data Structure You’ve Never Heard of | Python Deques
About this lesson
In this video, we delve into the Python Deque, a versatile data structure that combines the features of both stacks, queues, and lists. Learn how to efficiently manipulate and access elements using deque operations. This tutorial is perfect for beginners and experienced programmers, as we explore its implementation, advantages, and practical use cases. Source code - https://github.com/daniel-boctor/Daniel-Boctor-Youtube/blob/main/Deques/deques.ipynb 0:00 - Introduction 0:16 - Deques 0:41 - Appending to the right 1:10 - Popping from the right 1:39 - Appending to the left 2:18 - Popping from the left 2:44 - Insertion / deletion into middle 3:29 - Outro
Original Description
In this video, we delve into the Python Deque, a versatile data structure that combines the features of both stacks, queues, and lists. Learn how to efficiently manipulate and access elements using deque operations. This tutorial is perfect for beginners and experienced programmers, as we explore its implementation, advantages, and practical use cases.
Source code - https://github.com/daniel-boctor/Daniel-Boctor-Youtube/blob/main/Deques/deques.ipynb
0:00 - Introduction
0:16 - Deques
0:41 - Appending to the right
1:10 - Popping from the right
1:39 - Appending to the left
2:18 - Popping from the left
2:44 - Insertion / deletion into middle
3:29 - Outro
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Related Reads
📰
📰
📰
📰
I Did the Math on Claude Opus 5: Max Effort Cost 94% More Than High Effort
Dev.to · tokenmixai
I Banned AI Tools From My Creative Process for 30 Days. Here’s What Happened to My Brain
Medium · AI
Best AI Tools for Content Creators With Zero Budget
Medium · AI
Stop Building AI Chatbots. Build These 7 AI Products Instead.
Medium · Machine Learning
Chapters (8)
Introduction
0:16
Deques
0:41
Appending to the right
1:10
Popping from the right
1:39
Appending to the left
2:18
Popping from the left
2:44
Insertion / deletion into middle
3:29
Outro
🎓
Tutor Explanation
DeepCamp AI