Skip to content

Commit

Permalink
Update count-univalue-subtrees.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 committed Aug 6, 2015
1 parent b73a07b commit e9311b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions C++/count-univalue-subtrees.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Solution {
return false;
}

bool isSame(TreeNode* root, TreeNode* child, bool isUni) {
return child == nullptr || (isUni && root->val == child->val);
bool isSame(TreeNode* root, TreeNode* child, bool is_uni) {
return child == nullptr || (is_uni && root->val == child->val);
}
};

0 comments on commit e9311b3

Please sign in to comment.