Catalogue
- Case1: looks like “人” path.
- We usually return integer value to parent node
- Case2: must through the root node
Path
112. Path Sum
- root to leaf
- True or False
1 | class Solution(object): |
113. Path Sum II
- root to leaf
- all results
1 | class Solution(object): |
437. Path Sum III
- from any node to any node in the tree (can be the same node)
1 | class Solution(object): |
666. Path Sum IV
1 | class Solution(object): |
124. Binary Tree Maximum Path Sum
1 | class Solution(object): |
Maximum Sum from leaf to leaf
1 | class Solution(object): |