Given the root of a binary tree, calculate and return the sum of all left leaves.
A leaf is defined as a node that has no children. A left leaf is a leaf node that is the left child of its parent node.
Constraints:
The number of nodes in the tree is in the range
Node.val
Given the root of a binary tree, calculate and return the sum of all left leaves.
A leaf is defined as a node that has no children. A left leaf is a leaf node that is the left child of its parent node.
Constraints:
The number of nodes in the tree is in the range
Node.val