摘要:
Generate ParenthesesGivennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))", "(()())", "(())()", "()(())", "()()()"找出配对括号的所有组合,组合数就是卡特朗数,只是这里还要求组合,递归实现,关键 阅读全文
posted @ 2014-04-03 16:16
flowerkzj
阅读(127)
评论(0)
推荐(0)
浙公网安备 33010602011771号