摘要: 1 #include 2 #include // for calloc(), free() 3 #include // for assert() 4 5 /* 2013.7.12 6 * 问题:设计一个算法,找出二叉树上任意两个结点的最近共同父节点。 7 * PS. 结点中数据均不同 8 */ 9 typedef struct TreeNode TreeNode; 10 typedef struct ListNode ListNode; 11 12 struct TreeNode 13 { 14 int m_nValue; 15 T... 阅读全文
posted @ 2013-07-12 09:25 life91 阅读(681) 评论(0) 推荐(0) 编辑