← 返回 apple 的题目列表Valid Parentheses
类型:qbank
You are given a string s consisting of the following characters: '(', ')', '{', '}', '[' and ']'.
Examples
Example 1:
Input: s = "[]"
Output: true
Example 2:
Input: s = "([{}])"
Output: true
Example 3:
Input: s = "[(])"
Output: false
Explanation:
The brackets are not closed in the correct order.
Constraints
1 <= s.length <= 10^4
s consists only of parentheses characters ()[]{}