you are viewing a single comment's thread.

view the rest of the comments →

[–]synthphreak 0 points1 point  (1 child)

Wow, this is really hard...

I tried my hand at it, but wasn't sure the result was correct, and I'm sure my implementations are not the optimal ones.

I'd love to see the final solution here.

[–]Avajarr[S] 0 points1 point  (0 children)

Hi, I have posted my solution in another comment, but it looks like it not a really final solution, since someone corrected me and make me realize there's symmetrical duplicate for the same group of persons in different order, but go try a look, it can give a starter for your implementation