Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Employee Importance
Bookmark
Input
Two reports
Query a leaf
Three levels
Custom
employees
=
[[1,5,[2,3]],[2,3,[]],[3,3,[]]]
,
id
=
1
1
1
5
2
2
3
3
3
3
query
algo
master
.
io
Step:
Sum the importance of employee 1 and everyone below them in the hierarchy
0 / 17
Input
Two reports
Query a leaf
Three levels
Custom
employees
=
[[1,5,[2,3]],[2,3,[]],[3,3,[]]]
,
id
=
1
0 / 17
1
1
5
2
2
3
3
3
3
query
algo
master
.
io
Step:
Sum the importance of employee 1 and everyone below them in the hierarchy