โ† Accolite questions

Maximum path sum between two nodes of a tree

Filed under Accolite

Given a binary tree where each node contains an integer (which can be positive or negative), find the maximum path sum between any two nodes. The path does not need to pass through the root.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Accolite questions

Collected from public candidate posts and coding forums. Updated Nov 2026.