2014年12月16日

[leetcode] Sum Root to Leaf Numbers

摘要: Sum Root to Leaf NumbersGiven a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-l... 阅读全文

posted @ 2014-12-16 15:54 cha1992 阅读(160) 评论(0) 推荐(0) 编辑

[leetcode] Combinations

摘要: CombinationsGiven two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3... 阅读全文

posted @ 2014-12-16 15:25 cha1992 阅读(98) 评论(0) 推荐(0) 编辑

导航