Skip to content

Files

Latest commit

Aug 19, 2019
9ed9673 · Aug 19, 2019

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 19, 2019
Aug 19, 2019

Given a string of parentheses, find the balanced string that can be produced from it using the minimum number of insertions and deletions. If there are multiple solutions, return any of them.

For example, given "(()", you could return "(())". Given "))()(", you could return "()()()()".