5 XP challenge
Count Full Groups
very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve
TaskYour mission
Return the number of complete groups of size groupSize in items. items is 0 to 100; groupSize is 1 to 20.
Examples
| Input | Return |
|---|---|
items = 11, groupSize = 4 | 2 |
items = 12, groupSize = 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.