2. Valid Parentheses
Given a string s containing only bracket characters, determine whether the brackets are valid.
Contoh 1:
Input: s = "()" Output: true
Contoh 2:
Input: s = "([)]" Output: false
Batasan:
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