AlgoMaster Logo

Minimum Add to Make Parentheses Valid

s=())
0 / 8
s0(1)2)unmatchedOpen = 0unmatchedClose = 0MatchedUnmatched (Unmatched )
algomaster.io
Step:Start: Count minimum additions to make parentheses valid