5 XP challenge
Find the Leftovers
very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve
TaskYour mission
Return items modulo groupSize. items is 0 to 100; groupSize is 1 to 20.
Examples
| Input | Return |
|---|---|
items = 11, groupSize = 4 | 3 |
items = 12, groupSize = 4 | 0 |
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.