题目链接
https://leetcode.com/problems/generate-parentheses/description/
思路:DFS
https://www.cnblogs.com/zuoyuan/p/3779797.html
https://blog.csdn.net/asd136912/article/details/79101958
如果左大于右,说明产生的“(”小于“)”,是不合法的,直接跳过返回
题目链接
https://leetcode.com/problems/generate-parentheses/description/
思路:DFS
https://www.cnblogs.com/zuoyuan/p/3779797.html
https://blog.csdn.net/asd136912/article/details/79101958
如果左大于右,说明产生的“(”小于“)”,是不合法的,直接跳过返回