2. Valid Parentheses
Given a string s containing only bracket characters, determine whether the brackets are valid.
Example 1:
Input: s = "()" Output: true
Example 2:
Input: s = "([)]" Output: false
Constraints:
1 <= s.length <= 10^4
Given a string s containing only bracket characters, determine whether the brackets are valid.
Input: s = "()" Output: true
Input: s = "([)]" Output: false
1 <= s.length <= 10^4