Available question text
Given an employee table with manager relationships and salaries, compute for each employee the total salary of themselves plus all direct and indirect subordinates; the core challenge is traversing a self-referential hierarchy (tree/forest) efficiently. This typically requires recursive traversal (DFS/recursive CTE) to aggregate sums across multiple levels while handling deep nesting and multiple roots.
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
No company association
Leetcode 579. Find Cumulative Salary of an Employee
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source