๐ฎ Stacks & Queues (Practice)
Companion to the Stacks & Queues guide. Watch a stack validate balanced brackets, then implement the check.
๐ฌ Watch it workโ
Valid Parentheses โ push opens, pop on matchStep 1 / 7
'(' opens โ push. Stack: (
๐ Your turnโ
Loading editorโฆ
๐ง Challenge yourselfโ
- Return the index of the first unmatched bracket.
- Implement a queue using two stacks.
- Min-stack: support push/pop/getMin all in O(1).
Continue the path โ Heaps & Priority Queues