Open In App

Stack Data Structure

A Stack is a linear data structure that follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out). LIFO implies that the element that is inserted last, comes out first and FILO implies that the element that is inserted first, comes out last.



What is Stack Data Structure?

A stack is a linear data structure that follows the Last-In-First-Out (LIFO) principle. It behaves like a stack of plates, where the last plate added is the first one to be removed.



Think of it this way:

Key Operations on Stack Data Structures

Applications of Stack Data Structures

Basics of Stack Data Structure

Implementations of Stack in Different Languages

Other Implementations of Stack Data Structures

Easy Problems on Stack Data Structures

Medium Problems on Stack Data Structures

Hard Problems on Stack Data Structures

Quick Links :

Recommended:


Article Tags :