sum of left leaves in a tree(leetcode).
sum of left leaves in a tree(leetcode). class Solution { public: int sumOfLeftLeaves(TreeNode* root) { queue<TreeNode *>q; int sum=0; if(root==NULL) return 0; else if(root->left==NULL && root->right==NULL) return 0; else { q.push(root); while(!q.empty()) { Tre...