Determine if `s` has valid bracket pairs `()`, `[]`, `{}`. Variant **#6**.
Example 1
Input: s = "()"
Output: true
Constraints
Acceptance: 68% · Topics: stack, string
← All practice problems