Data Structures & Algorithms

Stack

/stæk/

Definition

A LIFO (Last In, First Out) data structure — push adds to the top, pop removes from the top.

Example in context

"Browser back button is a stack — each page you visit is pushed; going back pops the current page."

Related terms

Practice this term

Master Stack in context by working through exercises in the Data Structures & Algorithms module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.