Back to marketplace

Stacks

No description yet. This curated deck is ready for daily study.

Total cards: 4•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (4)

#1
Front (Question)

What is a stack?

Back (Answer)

A last in first out (LIFO) data structure where the last item to be added/pushed is the first item to be removed/popped

#2
Front (Question)

What are some uses of stack:

Back (Answer)

• Performing depth first search (DFS) on graphs • Backtracking algorithms • Keeping track of users inputs for undo operations • Used by processor to track flow of programs

#3
Front (Question)

What is a stack overflow ?⚠️

Back (Answer)

A stack overflow is an attempt to push an item onto a full stack

#4
Front (Question)

What is a stack underflow? ⚠️

Back (Answer)

A stack underflow is an attempt to pop of an item of an empty stack