Skip to content

Instantly share code, notes, and snippets.

@solars
Created February 11, 2016 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solars/53a132e34688cc5f396c to your computer and use it in GitHub Desktop.
Save solars/53a132e34688cc5f396c to your computer and use it in GitHub Desktop.
Find best neighbours
PersonA
likes to sit next to: C
doesn't like to sit next to: B
PersonB
likes to sit next to: D
doesn't like to sit next to C
..
-> order: A, C, D, B...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment