Stacks

LIFO (Last In First Out) data structure with push and pop operations.

Back to Data Structures
stacks
easy

What is a stack and what are its primary operations?

Click to flip

A stack is a LIFO (Last In First Out) data structure. Its primary operations are push (add an element to the top) and pop (remove the top element).

Click to flip back
stacklifo
1 of 2