Fork me on GitHub
摘要: 题目:Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum... 阅读全文
posted @ 2015-09-08 15:29 __Neo 阅读(138) 评论(0) 推荐(0)
摘要: 题目:Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest... 阅读全文
posted @ 2015-09-08 15:09 __Neo 阅读(236) 评论(0) 推荐(0)
摘要: 题目:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the de... 阅读全文
posted @ 2015-09-08 14:43 __Neo 阅读(133) 评论(0) 推荐(0)