Stacks & Queues
Stack ADT definition:A stack is a linear sequence of data of the same type. It can be likened to a stack of plates at a diner. The plates are taken off in a "last in, first out" order.
operations of a stack:they have top and bottomcan put on top and take off top ONLY
key words to remember:push - to push is to place an item on the top of a stack.pop - to pop from a stack is to remove an item from the top.top -...