Files
developer-roadmap/roadmaps/leetcode/content/valid-parentheses@YNt85B--HBS2IKDFVLJpx.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

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)