题目链接: https://leetcode-cn.com/problems/minimum-add-to-make-parentheses-valid/.
第一次自己写的代码
class Solution(object):
def minAddToMakeValid(self, S):
"""
:type S: str
:rtype: int
""</
题目链接: https://leetcode-cn.com/problems/minimum-add-to-make-parentheses-valid/.
第一次自己写的代码
class Solution(object):
def minAddToMakeValid(self, S):
"""
:type S: str
:rtype: int
""</