摘要: Related leetcode questions: BST: https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/ BT, node always in the tree. https://le 阅读全文
posted @ 2014-08-21 00:55 jdflyfly 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 5 / \ 2 6 / \ \ 1 4 7 / 3class Node{ Node left; Node right; Node parent; int val;}/**1.如果有右子树,则结果为右子树的最左节点。... 阅读全文
posted @ 2014-08-21 00:28 jdflyfly 阅读(344) 评论(0) 推荐(0) 编辑