Then the entire algorithm returns failure, since there is no possible way to match everyone into pairs successfully. This search is an exhaustive search (well, until a single successful set of matches is found).
--MidLifeXis
In reply to Re^3: Gift Exchange Code
by MidLifeXis
in thread Gift Exchange Code
by agianni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |