Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Apple Redistribution into Boxes
Bookmark
Input
Example 1
Example 2
Single apple pack
Fewer boxes
Custom
apple
=
[1, 3, 2]
,
capacity
=
[4, 3, 1, 5, 2]
apple
packs
capacity
boxes
1
3
2
0
1
2
3
4
4
3
1
5
2
algo
master
.
io
Step:
Start: Find the minimum number of boxes that hold all apples
0 / 8
Input
Example 1
Example 2
Single apple pack
Fewer boxes
Custom
apple
=
[1, 3, 2]
,
capacity
=
[4, 3, 1, 5, 2]
0 / 8
apple
packs
capacity
boxes
1
3
2
0
1
2
3
4
4
3
1
5
2
algo
master
.
io
Step:
Start: Find the minimum number of boxes that hold all apples