← Amazon questions

Convert parentheses string using wildcard X

Filed under Amazon

Given a string containing brackets '(', ')' and a wildcard character 'X', determine if the string can be converted into a balanced parentheses string by replacing each 'X' 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.