Overview
- what is STACK?
- Operations on STACK
- Ways to implement STACK
What is stack?
- stack is a linear data structure
- stack’s working principle is last in fisrt out(LIFO)
Real world examples of stack:
Programming world examples of stack:
Operations On stack
- Insert PUSH()
- Delete POP()
- View top element PEEK()
Ways To Implement Stack
- Using arrays
- Using DYN Arrays
- Using Linked List