AlgoMaster Logo

Time Needed to Inform All Employees

n=6,headID=2,manager=[2, 2, -1, 2, 2, 2],informTime=[0, 0, 1, 0, 0, 0]
0 / 19
algomaster.io
Step:Start: trace every employee's path up to the head, employee 2