Description
Santa Claus has come with a bag full of presents this year. A group of N kids stand in line, anxious to get their gifts. Santa Claus takes a present from his bag and gives it to the kid who is currently first in line. That kid then goes to the end of the line, unless he already has 4 gifts, in which case, he goes home. This process continues as long as there are presents in the bag and kids in the line. See full problem statement on https://community.topcoder.com/stat?c=problem_statement&pm=7266&rd=10011
How to enter
Solve the challenge on github and send the solution on devcoachro@gmail.com.
Registered solutions: 1
Winner
https://github.com/anonim50/SantaHelper by Catalin Crisan
Congratulations, the solution was valid and it had a nice “Christmasy touch”. Information regarding how to get your (symbolic) prize will be provided via e-mail.
Comments