Maximum Path Sum

Talk it through out loud with your AI coach.

The problem

  • hard
  • Pro

Each node of a binary tree holds an integer, possibly negative. Find the largest sum of values along any path, where a path follows edges, visits each node at most once and need not pass through the root. Explain your recursion.