Node with maximum root-to-subtree sum with negative values allowed
Filed under Grofers
The question
Find the node whose subtree sum is maximum, where node values may be negative.
No write-up yet. Related questions below have one.
Related Grofers questions
Collected from public candidate posts and coding forums. Updated Nov 2026.