Balanced Brackets Sequel
Given a string s
containing round, curly, and square open and closing brackets, return whether the brackets are balanced.
Constraints
n ≤ 100,000
wheren
is the length ofs
https://binarysearch.com/problems/Balanced-Brackets-Sequel
Examples
Example 1
Input
- s =
[(])
Output
- answer =
False
Example 2
Input
- s =
([])[]({})
Output
- answer =
True
Leave a comment