← All problems
Valid Parentheses
EasyStack
Given a string containing `()`, `[]`, `{}`, determine if every bracket is properly opened and closed in order.
Examples
Input: "()[]{}"
Output: true
Input: "(]"
Output: false
Input: "([)]"
Output: false
Input: "{[]}"
Output: true
Hints
Solution
Language:
Loading editor…
Output0 lines
Run your code to see output here.
Click Run all tests to check your solution against 7 test cases.