Tree path contribution [mp]
Micro pattern¶
Description¶
Return a one-branch contribution to a parent while separately testing paths joining two branches.
Problems¶
- 124. Binary Tree Maximum Path Sum (Top Hard)
Return a one-branch contribution to a parent while separately testing paths joining two branches.