摘要: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the total sum of all root-to-leaf numbers. For example, 1 / \ 2 3 The root-to-leaf path 1->2 represents the 阅读全文
posted @ 2014-04-13 06:46 beehard 阅读(125) 评论(0) 推荐(0) 编辑