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