Как доказать, что розыгрыш Тайного Санты возможен перед отправкой приглашений
DEV · 16.11.2026 · 00:22
Розыгрыш Тайного Санты усложняется с введением реалистичных правил. Важно определить, возможно ли соблюдение всех условий перед началом мероприятия.
Оригинал
How to Prove a Secret Santa Draw Is Possible Before Sending Invitations
A Secret Santa draw gets difficult as soon as the rules become realistic. Maybe partners should not draw each other. Maybe nobody should receive the same person as last year. A manager should not draw a direct report. Two people share an address. One participant cannot ship internationally. The usual implementation is: shuffle the names, reject invalid results, and try again. That works for simple groups, but it cannot answer the organizer's most important question: Is this rule set possible