leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE |

2236.cpp (125B)


1 class Solution { 2 public: 3 bool checkTree(TreeNode *root) { return root->val == root->left->val + root->right->val; } 4 };