about | help | code help+videos | done | prefs |
allHaveAGroup
Define a function that when passed two integers, the first representing the total number of students in a class, and the second representing the size of groups required by the professor for a group assignment. Return true if the class can be split in the given group size without any student(s) left without a group, false otherwise. allHaveAGroup(1000, 50) → true allHaveAGroup(80, 20) → true allHaveAGroup(80, 30) → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 2 Post-solution available
Copyright Nick Parlante 2017 - privacy