/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * }; */ class Solution { private: void sumOfLeftLeavesHelper(TreeNode* node, int& sum, bool isLeft) { if (!node) return; ...