leetcode-437-路径总和III

class Solution { public:     //包含root结点的条数     int findPath(TreeNode* root, int sum){         int res = 0;         if (root){             if (root->val == sum) res++;            // if (root->left == N
相关文章
相关标签/搜索