Premium Content
Sign in to see the full question
Get access to the full problem, solutions, follow-up questions, and discussion.
Get access to the full problem, solutions, follow-up questions, and discussion.
You are given an org chart as a list[list[str]].
Each inner list has the form:
[manager, report_1, report_2, ...]
For example:
[
["A", "B", "C"],
["B", "E"],
["C", "D"],
]
``...