Given a string, return a boolean value if the strings contains matching brackets Example: Input: "This is [a valid] string" Output: True Input: "This is an [invalid string" Output: False
Anonymous
Use a stack data structure
Check out your Company Bowl for anonymous work chats.