* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
723 B
723 B
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: