CC9.6 (LeetCode-Generate Parentheses ) Implement analgorithm to print all valid combinations of n-pairs of parenthese.
摘要:
Implement analgorithm to print all valid combinations of n-pairs of parenthese.Analysis:-只要待加入的有左括号就可以加入左括号。最初可以加入的左括号为n个。-只要已加入的左括号比右括号多就可以加入右括号。最初可以... 阅读全文
posted @ 2015-04-03 13:02 amethystltt 阅读(159) 评论(0) 推荐(0)
浙公网安备 33010602011771号