algoritmauzmanı
Sign in
TREN
Subtopic 4.3

Stack Applications

3lessons21 min0done

A stack is the natural tool for any job that follows the rule "close the most recently opened first". This subtopic covers the three applications asked most often in exams.

The applications do not care how the stack is coded: a stack built on an array and one built on a linked list do the same job. What matters is the order in which push, pop and peek are called.

Lesson 4.3.1 Balanced parentheses7 min