All root-to-leaf path sums
Return a list with the sum of the values along every root-to-leaf path of a binary tree, one entry per leaf, in left-to-right order.
No answer yet. Write the first one; the best answer gets endorsed.
Return a list with the sum of the values along every root-to-leaf path of a binary tree, one entry per leaf, in left-to-right order.