| |
The Lair Data Structures Main |
Topics:
Stack
More to Come!
|
EXAMPLES:
|
STACKS:
DEFINITION:
- A stack is one of the most commonly used data structures. In a stack, the last data to be stored is accessed first. This is know as LIFO which means Last-in first-out. Inserting data into the stack and deleting from the stack is done at one end which is referred to as the top. The process of inserting an element into a stack is known as push. The process of deleting an element from a stack is known as pop.
OPERATIONS:
SOME STACK APPLICATIONS:
WAYS TO IMPLEMENT STACKS:
|