摘要: Given a binary tree, count the number of uni-value subtrees.A Uni-value subtree means all nodes of the subtree have the same value.For example:Given b... 阅读全文
posted @ 2016-01-05 08:37 Hygeia 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe... 阅读全文
posted @ 2016-01-05 05:13 Hygeia 阅读(114) 评论(0) 推荐(0) 编辑