My Blog List

[Leetcode Solution] Sum Root to Leaf Numbers

Analysis

  • DFS the tree. When the leaf is reached, add the formed value to the sum

Note


Code


No comments:

Post a Comment

Enter you comment