I think it should return true.
because root has no right leaf, the root itself can represent the root-to-leaf sum.
Leaf is the node which has neither left node nor right node.
The root has left node so it is not a leaf node.
met the same failure
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.