AlgoMaster Logo

Employee Importance

employees=[[1,5,[2,3]],[2,3,[]],[3,3,[]]],id=1
0 / 17
1imp: 52imp: 33imp: 3Call Stack:(empty)Total Importance: 0Legend:Not visitedVisitingComputed
algomaster.io
Step:Start DFS to calculate total importance for employee 1