jizzel / algo-dsa

leetcode
0 stars 0 forks source link

V2 matching brackets #68

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 initial code!