← Bloomberg questions

Bracket matching in a string

Filed under Bloomberg

Given a string containing brackets (), [], {} and other characters, determine whether the brackets are balanced: every opener is closed by the same type in the correct order. Characters that are not…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Bloomberg questions

Collected from public candidate posts and coding forums. Updated Nov 2026.