This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingFind the largest sum along any path, where the path may bend at one node.
What this asks
Find the largest sum along any path, where the path may bend at one node.
Return the best single-branch sum a node offers its parent (its value plus the better child branch, floored at zero) and track the best bending path separately.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing