A stack is an ordered collection of items into which new items may be inserted and from which items may be deleted at one end, called the
top
of the stack. Since the items are inserted and deleted from one end, stack is sometime called a last-in-first-out or LIFO
list.Operations on stack:
PUSH
: Push operation is used to insert an item at the top of the stack.POP
: Pop operation is used to deleted an item from the top of the stack.Implementations of Stack:
- Array Implementation of Stack
- Stack Implementation using Structure
- Stack to store different data types
- Link List Implementation of Stack
- Applications of Stack
Comments
Post a Comment