Report Chain Org Tree
Asked at Reddit · Coding Questions · Difficulty: Medium · Last asked Feb 17, 2026
Build an organizational reporting hierarchy from a list of `(employee, manager)` pairs (given as list-of-lists `[[manager, report1, report2,...],...]` or list-of-strings `"A,B,C"`), then answer staged queries. Assume a valid single-root management tree with child order matching the input.
Loading the problem…