5 XP challenge
Round Up Containers
very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve
TaskYour mission
Return the fewest containers that hold all items, with capacity items per container. items is 0 to 100; capacity is 1 to 20.
Examples
| Input | Return |
|---|---|
items = 11, capacity = 4answer: 2 → 3. The result is 3. | 3 |
items = 12, capacity = 4 | 3 |
Your code
Write your answer inside Solution, then use return to send it back.
Ln 1, Col 1
JavaScript
Try examples runs the public examples. Check my code checks your full answer and saves your completion.