Available question text
Compute every node's subtree sum (sum of values in its subtree) and return the sum(s) that occur most frequently. The core challenge is performing a postorder traversal to aggregate sums, count their frequencies, and handle ties by returning all maxima.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Meta
Leetcode 508. Most Frequent Subtree Sum
Interview reported: Dec 1, 2025 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source