摘要: 题目链接:https://leetcode-cn.com/problems/generate-parentheses/ 题目描述: 题解: 当n = 3 时,字符串长度为6,left = 3, right = 3。当左括号个数大于右括号时,不会产生合法组合。 class Solution { pub 阅读全文
posted @ 2021-07-30 16:29 张宵 阅读(89) 评论(0) 推荐(1)