Minimum deletions to balance a parentheses string
A string contains only ( and ). Delete as few characters as possible so the rest is balanced, and return the resulting string.
No answer yet. Write the first one; the best answer gets endorsed.
A string contains only ( and ). Delete as few characters as possible so the rest is balanced, and return the resulting string.