Uncommon

Stack (abstract data type)

Abstract data type

Stack (abstract data type)

Uncommon card · No. 133639

In computer science, a stack is an abstract data type that serves as a collection of elements with two main operations: Push, which adds an element to the collection, and Pop, which removes the most recently added element. Additionally, a peek operation can, without modifying the stack, return the value of the last element added (the item at the top of the stack). The name stack is an analogy to a set of physical items stacked one atop another, such as a stack of plates. The order in which elements are added to or removed from a stack is described as last in, first out, referred to by the acronym LIFO. As with a stack of physical objects, this structure makes it easy to take an item off the top of the stack, but accessing a datum deeper in the stack typically requires removing multiple other items first. Considered a sequential collection, a stack has one end which is the only position at which the push and pop operations may occur, the top of the stack, and is fixed at the other end,...

Read on Wikipedia · Image Foto: Jonn Leffmann, CC BY 3.0

Open boosters, collect cards and trade them. Free to play.

Play for free
Stack (abstract data type) – Uncommon Wikipedia card | Wikiverse TCG