摘要: The problem:Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2... 阅读全文
posted @ 2015-01-10 12:01 airforce 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Problem 1 [Balanced Binary Tree]Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as ... 阅读全文
posted @ 2015-01-10 04:39 airforce 阅读(176) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",r... 阅读全文
posted @ 2015-01-10 00:20 airforce 阅读(209) 评论(0) 推荐(0) 编辑