What are Stacks?
- Stacks are a type of data structure that follows the LIFO (Last In First Out) principle
- Last element to be added is the first to be removed
Related examples
- Read my solution to some LeetCode problems below
- Valid Parentheses
- Min Stack
- https://docs.google.com/document/d/1OiEYxC6jXoZMtXaA2dt_krmBJ3YsWWykUzuC_4D4DXg/edit?usp=sharing
Resources
Concepts explained here are following those from Neetcode’s roadmap
.