标签:
Generate Parentheses
问题:
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()(())", "()()()"
思路:
dfs
我的代码:
学习之处:
标签:
原文地址:http://www.cnblogs.com/sunshisonghit/p/4322701.html