In computer science, a stack is an abstract data type that serves as a collection of elements supporting two main operations: push, which adds an element to the collection, and pop, which removes the most recently added element. This last-in, first-out discipline makes the stack one of the foundational data structures used throughout computing. This description is adapted from Wikipedia contributors under CC BY-SA 4.0; changes were made. https://creativecommons.org/licenses/by-sa/4.0/
Sources
Stack (Abstract Data Type) (Wikipedia)
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.