Valid Parentheses
EasyAcceptance: 40.1%
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
Examples:
Input: s = "()"
Output: true
Explanation: The brackets match.
Constraints:
- 1 <= s.length <= 104
- s consists of parentheses only '()[]{}'
Loading...