jizzel / algo-dsa

leetcode
0 stars 0 forks source link

Matching brackets v2 #67

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.

-- This is a simpler version of the previous PR.