Intro of stack
Intro of stack
Presented By:-
Dr Suraj Srivastava
Stack
• Stack is a linear data structure that follows the LIFO
(Last In First Out) principle, where it performs all
operations. It performs insertion and deletion
operations on the stack from only one end from the
top of the stack. Inserting a new element on the top of
the stack is known as push operation, and deleting a
data element from the top of the stack is known as pop
operation. You can perform the implementation of the
stack in memory using two data structures: stack
implementation using array and stack implementation
using linked-list.
Stack Implementation Using Array