摘要: 题目描述 输入两个单调递增的链表,输出两个链表合成后的链表,当然我们需要合成后的链表满足单调不减规则。 递归: 合并1—3—5 2—4--6 例如 找出 要合并的2个链表中值小的 头结点1。1 指向 merge(3,5 2,4,6) merge 返回的是已经合并好的链表 1→{3—5 2—4--6} 阅读全文
posted @ 2017-11-16 10:10 乐乐章 阅读(156) 评论(0) 推荐(0) 编辑
摘要: You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need t 阅读全文
posted @ 2017-11-16 09:44 乐乐章 阅读(144) 评论(0) 推荐(0) 编辑