Stack

A stack is an Abstract Data Type used as a collection of elements, supporting the following two major operations:

  1. push(): Adds an element to the collection.

  2. pop(): Removes the most recently inserted element that has not been removed yet.

Last updated