Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Tree] 250. Count Univalue Subtrees 统计同值子树 #10

Open
jotoy opened this issue Jan 31, 2020 · 0 comments
Open

[Tree] 250. Count Univalue Subtrees 统计同值子树 #10

jotoy opened this issue Jan 31, 2020 · 0 comments

Comments

@jotoy
Copy link
Owner

jotoy commented Jan 31, 2020

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.

For example:
Given binary tree,

          5
         / \
        1   5
       / \   \
      5   5   5

return 4.

明天继续吧~

@jotoy jotoy changed the title [Tree] Count Univalue Subtrees 统计同值子树 [Tree] 250. Count Univalue Subtrees 统计同值子树 Feb 1, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant