Determine whether deleting characters left of each digit can yield a balanced parenthesis string.
Unlock detailed company stats for this questionUpgrade
Given a string of parentheses ( and ) and digits 0-9, each digit acts as a conditional deletion constraint targeting characters to its left. Determine whether at least one valid sequence of deletions can yield a strictly balanced parenthesis string. Each digit acts sequentially (consecutive digits are not combined), and edge cases include zero digits (0) and insufficient characters to the left.
Community answers
No answers contributed by the community yet.


