Fmars Blog
Inner happiness comes from self-sacrifice
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Enter you comment