Problem 1376 · Medium

Time Needed to Inform All Employees

Spread the news down the manager tree: each employee passes it to every report in turn, and the slowest path sets the answer.

Open the interactive visualisation