C++ Solution:Recursive,6 lines,easy to understand
If the solution helps,please do consider upvoting it.\n\n\nclass Solution {\npublic:\n    int rangeSumBST(TreeNode* root, int low, int high) \n    {\n        if
**If the solution helps,please do consider upvoting it.**\n\n```\nclass Solution {\npublic:\n    int rangeSumBST(TreeNode* root, int low, int high) \n    {\n        if(!root)\n            return 0;\n       if(root->val>high)\n           return rangeSumBST(root->left,low,high);\n        if(root->val<low)\n            return rangeSumBST(root->right,low,high);\n        return root->val +rangeSumBST(root->left,low,high) +rangeSumBST(root->right,low,high);\n    }\n};\n```
['Recursion', 'C', 'C++']