摘要: Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes 阅读全文
posted @ 2016-08-14 23:17 冰凌花花~ 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Given a binary search tree (See Definition) and a node in it, find the in-order successor of that node in the BST. If the given node has no in-order s 阅读全文
posted @ 2016-08-14 19:15 冰凌花花~ 阅读(293) 评论(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 dept 阅读全文
posted @ 2016-08-14 16:22 冰凌花花~ 阅读(147) 评论(0) 推荐(0) 编辑