Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Employee Importance
Bookmark
Input
Example 1
Example 2
Example 3
Custom
employees
=
[[1,5,[2,3]],[2,3,[]],[3,3,[]]]
,
id
=
1
1
imp: 5
2
imp: 3
3
imp: 3
Call Stack:
(empty)
Total Importance:
0
Legend:
Not visited
Visiting
Computed
algo
master
.
io
Step:
Start DFS to calculate total importance for employee 1
0 / 17
Input
Example 1
Example 2
Example 3
Custom
employees
=
[[1,5,[2,3]],[2,3,[]],[3,3,[]]]
,
id
=
1
0 / 17
1
imp: 5
2
imp: 3
3
imp: 3
Call Stack:
(empty)
Total Importance:
0
Legend:
Not visited
Visiting
Computed
algo
master
.
io
Step:
Start DFS to calculate total importance for employee 1