LeetCode

Count Univalue Subtrees

Click here for an explanation.