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