2236. Root Equals Sum of Children 發表於 2023-02-13 | 分類於 leetcode [problem](https://leetcode.com/problems/root-equals-sum-of-children/solution12345678class Solution {public: bool checkTree(TreeNode* root) { // exactly 3 nodes return root->val == root->left->val +root->right->val; }};