Stacks operate as LIFO (Last In First Out). All actions operate on the top of the queue.
Push
- Add top top of stackPop
- Remove from top of stackTop
- Top of the stackPeek
- Check the top valueQueues operate as FIFO (First In First Out). Items removed from front of queue, but added to end.
Enqueue
- Add to back of the queueDequeue
- Remove from front of the queueFront
- Beginning of queueRear
- End of queuePeek
- Check the front value