摘要: 题目描述: 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 阅读全文
posted @ 2018-02-10 12:51 宵夜在哪 阅读(107) 评论(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 nea 阅读全文
posted @ 2018-02-10 11:50 宵夜在哪 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: Example 1: Given the fol 阅读全文
posted @ 2018-02-10 00:42 宵夜在哪 阅读(90) 评论(0) 推荐(0) 编辑