[LeetCode] Count Univalue Subtrees

1 · · Feb. 21, 2022, 9:16 a.m.
250. Count Univalue Subtrees Given the root of a binary tree, return the number of uni-value subtrees. A uni-value subtree means all nodes of the subtree have the same value. ...