I always have a ton of fun with these sorts of things. I always wonder how they come up with these sorts of puzzles. That's not a skill I have.
Advent of Code 2019
11–20 of 124 posts
Re: Advent of Code 2019
#12Re: Advent of Code 2019
#13Has anyone seen a site using an IP assignment agreement which is the equivalent of "take my work, I don't want credit, and it's just for your site"?
The Creative Commons CC0 license comes closest, but one could scrape those puzzles and create a competing site, which I'd guess Eric wants to avoid.
Re: Advent of Code 2019
#14Re: Advent of Code 2019
#15Always enjoy doing these but there was one last year that nearly broke me. I think it was day15. It was the worst combination of mind-numbing coding and horribly hard to debug special cases. It was purely convoluted with very little to think about which makes for the worst kind of puzzles
Ultimately though I realised that if I followed the description word by word, and made no assumptions, then I got the right solution. Still, a nightmare: you could pass all the examples, or even some alternate real sample data, and still get it wrong if you got the ordering slightly incorrect.
Re: Advent of Code 2019
#16One line bash solutions: https://pastebin.com/QnKJEXxt
Re: Advent of Code 2019
#17Eric, the author, says he won't accept any puzzle submissions because of attribution and legal issues. This seems like the wrong outcome for people who want to make the site better but don't want credit, compensation, or attribution. Has anyone seen a site using an IP assignment agreement which is the equivalent of "take my work, I don't want credit, and it's just for your site"? The Creative Commons CC0 license come…
Re: Advent of Code 2019
#18Re: Advent of Code 2019
#19One line bash solutions: https://pastebin.com/QnKJEXxt
sum(map(lambda x: x // 3 - 2, numbers))