STACK
, Stack ADT
• Stack is an ordered list of similar data type
• Principle - Last-in, first-out(LIFO) or First-
in,Last-out(FILO)
• Operations – PUSH & POP
, Stack implementation using List
• Push elements into a Stack
• Pop elements from a Stack and issue a
warning if it’s empty
• Get the size of the Stack
• Print all the elements of the Stack
• Insert(Push)
• Delete(PoP)
• Size
• display
, Stack ADT
• Stack is an ordered list of similar data type
• Principle - Last-in, first-out(LIFO) or First-
in,Last-out(FILO)
• Operations – PUSH & POP
, Stack implementation using List
• Push elements into a Stack
• Pop elements from a Stack and issue a
warning if it’s empty
• Get the size of the Stack
• Print all the elements of the Stack
• Insert(Push)
• Delete(PoP)
• Size
• display