Closed xqian closed 11 years ago
http://leetcode.com/2011/07/lowest-common-ancestor-of-a-binary-tree-part-i.html http://leetcode.com/2011/07/lowest-common-ancestor-of-a-binary-tree-part-ii.html
I think my solution may not be as clean as the on eon leetcode, but I think my solution can handle the no ancestor case.
http://leetcode.com/2011/07/lowest-common-ancestor-of-a-binary-tree-part-i.html http://leetcode.com/2011/07/lowest-common-ancestor-of-a-binary-tree-part-ii.html
I think my solution may not be as clean as the on eon leetcode, but I think my solution can handle the no ancestor case.