July 30, 2015
problem statement:
lowest common ancestor in binary tree, question No: 236
Try 4 implementations, 2 passes, but 2 failed.
Try 4 implementations, 2 passes, but 2 failed.
read blogs:
http://articles.leetcode.com/2011/07/lowest-common-ancestor-of-a-binary-tree-part-i.html
http://huangyawu.com/leetcode-lowest-common-ancestor-of-a-binary-tree/
http://www.cnblogs.com/chkkch/archive/2012/11/26/2788795.html
http://huangyawu.com/leetcode-lowest-common-ancestor-of-a-binary-tree/
http://www.cnblogs.com/chkkch/archive/2012/11/26/2788795.html
write C# code:
No comments:
Post a Comment