LeetCode 250. Count Univalue Subtrees(单值子树)
原题网址:https://leetcode.com/problems/count-univalue-subtrees/
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.
原创
2016-04-07 13:49:39 ·
1874 阅读 ·
0 评论