This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.
Definitely had to get some inspiration from what had already been posted on this one. I'm not sure if the logic is flawless, but it seems to have worked. Let me know if you see places where I can improve on this one!
I think the example output given is wrong, according to the answer only 25 people would get a present. My solution gives everyone (All 50) a present with no double pairings. (Used unique tool at end to check).