jizzel / algo-dsa

leetcode
0 stars 0 forks source link

Python/New valid parenthesis match #71

Closed ABIGAILDEBBY closed 1 month ago

ABIGAILDEBBY commented 1 month 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.