2014年8月26日

Balanced Binary Tree

摘要: 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 dept 阅读全文

posted @ 2014-08-26 17:15 bug睡的略爽 阅读(150) 评论(0) 推荐(0)

Minimum Depth of Binary Tree & Maximum Depth of Binary Tree

摘要: 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 l 阅读全文

posted @ 2014-08-26 16:47 bug睡的略爽 阅读(122) 评论(0) 推荐(0)

Flatten Binary Tree to Linked List

摘要: Flatten Binary Tree to Linked List Given a binary tree, flatten it to a linked list in-place. For example,Given 1 / \ 2 5 / \ \ 3 4 6 The flattened tr 阅读全文

posted @ 2014-08-26 16:30 bug睡的略爽 阅读(136) 评论(0) 推荐(0)

Path Sum系列

摘要: Path Sum 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 giv 阅读全文

posted @ 2014-08-26 16:23 bug睡的略爽 阅读(176) 评论(0) 推荐(0)

导航