Find Count of Single Valued Subtrees
Find Count of Single Valued Subtrees

Given a binary tree, write a program to count the number of Single
Valued Subtrees. A Single Valued Subtree is one in which all the nodes
have same value. Expected time complexity is O(n).

kirankancheti/Data-Structures-and-Algorithms