摘要:
给定一个数,从根节点到叶节点是一个值,返回所有的值的和。例如:For example, 1 / \ 2 3The root-to-leaf path1->2represents the number12.The root-to-leaf path1->3represents the ... 阅读全文
posted @ 2014-12-06 20:25
higerzhang
阅读(155)
评论(0)
推荐(0)
摘要:
给定一个数组,找出里面连续的子序列的最长长度。例如:Given[100, 4, 200, 1, 3, 2],The longest consecutive elements sequence is[1, 2, 3, 4]. Return its length:4.思路一:排序,然后count一下就o... 阅读全文
posted @ 2014-12-06 19:44
higerzhang
阅读(407)
评论(0)
推荐(0)
浙公网安备 33010602011771号