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.