jizzel / algo-dsa

leetcode
0 stars 0 forks source link

Python/Matching brackets #66

Closed ABIGAILDEBBY closed 3 days ago

ABIGAILDEBBY commented 3 days ago

Added solution for the "Valid Parentheses" problem. This function checks if a given string of parentheses, brackets, and curly braces is valid by ensuring each opening bracket has a corresponding closing bracket in the correct order. The solution uses a stack to match brackets efficiently.