leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE |
2236.cpp (125B)
0 class Solution {
1 public:
2 bool checkTree(TreeNode *root) { return root->val == root->left->val + root->right->val; }
3 };