On Thu, Apr 12, 2012 at 10:34 PM, KB wrote: > I have a list of users which is of a variable length. I need to sort > them into teams of 5 and 6, leaving nobody unassigned (when > possible).
What if that is not possible? > I should minimize the total number of teams, creating as the most > number of 6 person teams and least number of 5 person teams possible. Total teams: #ceiling(players/6)# Teams with 5 players: #(6 - players mod 6) mod 6# Jochem -- Jochem van Dieten http://jochem.vandieten.net/ -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
