Given a string s consisting only of the characters '(' and ')', determine the minimum number of parentheses you must add to s so that the resulting string is a valid parentheses string.
A valid parentheses string is one where parentheses are properly matched and correctly nested.
Constraints:
s.length
s[i] is either '(' or ')'
Given a string s consisting only of the characters '(' and ')', determine the minimum number of parentheses you must add to s so that the resulting string is a valid parentheses string.
A valid parentheses string is one where parentheses are properly matched and correctly nested.
Constraints:
s.length
s[i] is either '(' or ')'