Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Assign Cookies
Bookmark
Input
Example 1
Example 2
All satisfied
None satisfied
Mixed
Custom
g
=
[1, 2, 3]
,
s
=
[1, 1]
g (greed)
0
1
1
2
2
3
s (cookies)
0
1
1
1
algo
master
.
io
Step:
Start: Assign cookies to maximize the number of content children
0 / 10
Input
Example 1
Example 2
All satisfied
None satisfied
Mixed
Custom
g
=
[1, 2, 3]
,
s
=
[1, 1]
0 / 10
g (greed)
0
1
1
2
2
3
s (cookies)
0
1
1
1
algo
master
.
io
Step:
Start: Assign cookies to maximize the number of content children