DSA: Stack Data Structure
What is a Stack?
Stack is a linear data structure that follows the Last In First Out(LIFO) principle which means the element which is pushed last will be taken out first.
A real-world example of the stack is piles of plates(We place them one over t...
venketeshpanda.hashnode.dev4 min read