mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-29 18:37:18 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
9 lines
723 B
Markdown
9 lines
723 B
Markdown
# Valid Parentheses
|
|
|
|
Given a string of brackets, determine if it is valid, meaning every opening bracket is closed by the same type in the correct order. You push opening brackets onto a stack and pop when you see a closing bracket, checking for a match. This is the canonical stack problem and teaches you the key idea: a stack naturally tracks things that need a future match.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Valid Parentheses - LeetCode](https://leetcode.com/problems/valid-parentheses/description/)
|
|
- [@video@Valid Parentheses (LeetCode 20)](https://www.youtube.com/watch?v=TaWs8tIrnoA)
|
|
- [@video@Valid Parentheses - Leetcode 20 - Stacks (Python)](https://www.youtube.com/watch?v=7-_V-ufnF4c) |