2015年3月9日

Combinations

摘要: Combinations问题:Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.思路: dfs + 回溯我的代码:public class Solution { public ... 阅读全文

posted @ 2015-03-09 11:20 zhouzhou0615 阅读(157) 评论(0) 推荐(0) 编辑

Generate Parentheses

摘要: Generate Parentheses问题:Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a ... 阅读全文

posted @ 2015-03-09 08:54 zhouzhou0615 阅读(171) 评论(0) 推荐(0) 编辑

导航