When would you use a stack?
Reveal the answer and explore the explanation.
05MediumHigh priorityWhen would you use a stack?
Answer
MediumHigh priority
When would you use a stack?
Answer
Last-in first-out abstract collection.
Practical example
Match nested parentheses.
Reference: Further reading ↗