AlgoMaster Logo

Employee Importance

employees=[[1,5,[2,3]],[2,3,[]],[3,3,[]]],id=1
0 / 17
115223333query
algomaster.io
Step:Sum the importance of employee 1 and everyone below them in the hierarchy