Address
Whiteland, IN 46184
Work Hours
Monday to Friday: 9AM - 5PM
Weekend: 1PM - 3PM
What is a Stack?
A stack is a linear data structure that follows a particular order for insertion and deletion. The is referred to as LIFO (Last In First Out). The last element added to the stack will be the first element removed from the stack.
How is it used?
Think about a stack of plates, or a stack of markers, or a stack of….anything. As you pile it up, when you want to remove the plate, you start from the top which is the last thing (or the topmost thing) is what gets removed first.
Visualization of a stack
Where are Stacks used?
BigO of stack
Recap