Skip to content

Instantly share code, notes, and snippets.

@wallergoble
Last active April 21, 2021 00:26
Show Gist options
  • Save wallergoble/8a8c0482566dc5f4bf612750395a6a38 to your computer and use it in GitHub Desktop.
Save wallergoble/8a8c0482566dc5f4bf612750395a6a38 to your computer and use it in GitHub Desktop.
Scheduling Problem

Given a list of N names, print out a schedule where each person meets with every other person in the list exactly once.

Bonus: Given a set amount of time in minutes, evenly distribute the time amongst each meeting round.


e.g.

names: ['Alex', 'Kate', 'Kyle', 'Liz']

time: 60


Round 1 12:00 - 12:20:

Alex - Kate

Kyle - Liz


Round 2 12:20 - 12:40:

Alex - Liz

Kate - Kyle


Round 3 12:40 - 1:00:

Alex - Kyle

Kate - Liz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment