My advent of code notes & solutions
Find a file
2024-12-25 12:59:49 +01:00
2023 Initial commit 2024-12-25 12:59:49 +01:00
2024 Initial commit 2024-12-25 12:59:49 +01:00
.gitignore Initial commit 2024-12-25 12:59:49 +01:00
LICENSE.EUPLv1.2 Initial commit 2024-12-25 12:59:49 +01:00
LICENSE.Unlicense Initial commit 2024-12-25 12:59:49 +01:00
README.md Initial commit 2024-12-25 12:59:49 +01:00
times.csv Initial commit 2024-12-25 12:59:49 +01:00
times.py Initial commit 2024-12-25 12:59:49 +01:00

Advent of Code

Advent of Code is a yearly coding competition. In this repo are the solutions and notes I wrote for it.

Content warning: Some profanity.

Unless indicated otherwise in a README, one.py and two.py are the files that generated the solution that got me the answer. So they WILL contain unreadable code and broken solutions, as I'm optimizing for answer speed.

Other codes are either solutions that went so bad I wrote a backup in a different file (otherwise I usually rewrite/comment out the things that don't work), or puzzles I revisited because someone posted a part 3, I wanted to try a different approach, or I wanted to figure out how the hell the code that got me the solution worked in the first place.

Times display

Since there's no way I was going to get up at 6 AM but I still wanted to keep track of the time I took to get to the right answer, the times.py script display a table of the times between I opened the puzzle in my browser, and the time I submitted the solution. It has quite a few limitations but they're documented. Either run it with Lix/Nix, or manually install the dependencies that are stated on the 3rd line.

License

I'm not 100% sure it can work like this but here goes:

  • times.py is licensed under the "European Union Public License v1.2". The idea is that if you modify the script and use it to share its output, you have to share your modifications as well, so the community can also enjoy it.
  • Puzzle solutions, test inputs I wrote are licensed under "The Unlicense". It's basically public domain, so it can be used as teaching material.
  • Inputs copied from Reddit (identified with a "reddit" somewhere in the filename) are... I don't know, and I'm not reading the Reddit TOS to figure it out.