5 XP challenge

Round Up Containers

very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve

Task
Your 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

InputReturn
items = 11, capacity = 4

answer: 2 → 3. The result is 3.

3
items = 12, capacity = 43

Your code

Write your answer inside Solution, then use return to send it back.

Try examples runs the public examples. Check my code checks your full answer and saves your completion.