摘要: 题目:Given a linked list, swap every two adjacent nodes and return its head.Given 1->2->3->4, you sh... 阅读全文
posted @ 2015-09-26 20:31 JSRGFJZ6 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. 1 / \ 2 3 Return the sum = 12 + 13 = 25. 思路:递 阅读全文
posted @ 2015-09-26 19:42 JSRGFJZ6 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a n... 阅读全文
posted @ 2015-09-26 19:42 JSRGFJZ6 阅读(89) 评论(0) 推荐(0) 编辑