Data Structure-Stack
Data Structure-Stack
Kaustuv Bhattacharjee
University of Engineering & Management, Kolkata
Stack-Introduction
• Stack is an ordered list in which, insertion and
deletion can be performed only at one end
that is called top.
• Stack is a recursive data structure having
pointer to its top element.
• Stacks are sometimes called as Last-In-First-
Out (LIFO) lists i.e. the element which is
inserted first in the stack, will be deleted last
from the stack.