Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Process Tasks Using Servers
Bookmark
Input
Example 1
Example 2
Simple
Custom
servers
=
[3, 3, 2]
,
tasks
=
[1, 2, 3, 2, 1, 2]
Tasks:
1
2
3
2
1
2
Free Servers:
size = 0
(empty)
Busy Servers:
size = 0
(empty)
algo
master
.
io
Step:
Start: servers=[3,3,2], tasks=[1,2,3,2,1,2]
0 / 17
Input
Example 1
Example 2
Simple
Custom
servers
=
[3, 3, 2]
,
tasks
=
[1, 2, 3, 2, 1, 2]
0 / 17
Tasks:
1
2
3
2
1
2
Free Servers:
size = 0
(empty)
Busy Servers:
size = 0
(empty)
algo
master
.
io
Step:
Start: servers=[3,3,2], tasks=[1,2,3,2,1,2]