Stack


Stack is a very important data structure in any programming language. In this data structure tutorial, we will discuss what is stack and implement stack in python using a list and collections.deque. In the end there are couple of exercises for you to solve.

Code: https://github.com/codebasics/py/blob/master/DataStructures/5_Stack/5_stack.ipynb
Exercise: https://github.com/codebasics/py/blob/master/DataStructures/5_Stack/5_stack_exercise.md

Topics
00:14 What is stack?
04:51 Stack in different languages
05:06 Using list as a stack
07:50 Using deque as a stack
11:50 Exercise