stack

0001-01-01

In software development, a stack is a date type that serves as a collection of elements arranged in a “stack” (think of a stack of dinner plates).

The two primary operations for stacks are:

  • push: add a plate to the top of the stack.
  • pop: remove a plate from the top of the stack.

Stacks are a LIFO (Last In, First Out) data structure.