← Amazon questions

Split string into two balanced bracket substrings

Filed under Amazon

Given a string of '(' , ')' and '?', count the number of split points such that the left substring and right substring can both form a balanced bracket sequence by replacing '?' with either '(' or…

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 Amazon questions

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