Given the root of a binary tree, return the total count of uni-value subtrees.
A uni-value subtree is a subtree where every node contains the exact same value.
Constraints:
The number of nodes in the tree is in the range
Node.val
Given the root of a binary tree, return the total count of uni-value subtrees.
A uni-value subtree is a subtree where every node contains the exact same value.
Constraints:
The number of nodes in the tree is in the range
Node.val