2

I'm update my secret santa web-app so now there relationship restrictions. So basically, I need to know first if the draw is possible. Example

array('Al', 'Bob', 'Carl', 'Dana', 'Ella');

First: How many different draws can occur?

Second: if Al is in couple with Dana and Carl with Ella, knowing they can't draw each others name, how many draws can occur?

Any ideas how to accomplish that?

Qirel
  • 23,315
  • 7
  • 41
  • 57
jesse94
  • 117
  • 1
  • 7

0 Answers0