Stack ADT Java
Stack ADT Java
Hira Awais
Lecturer (DCS)
DDSA (FOC)
“A Stack is a special kind of list in which all insertions and
deletions take place at one end, called the Top”
Other Names
Pushdown List
Last In First Out (LIFO)
Examples:
Books on a floor
Dishes on a shelf
There are two kinds of stack data structure -
a) static, i.e. they have a fixed size, and are implemented as arrays.