← blog

Twenty-Five Days

Advent of Code 2024: one post per puzzle, solved step by step in Python, with an animation per part.

The last of the twenty-five-day events. Each part starts from a plain first version and moves one step at a time to the version worth keeping, saying what each step changes and why. Python only.

They were written without a puzzle input of my own, so every solution here is checked against the puzzle’s examples (and, where speed matters, against generated inputs of the real size), not against an answer submitted on the site. Each post says what was run.

The solutions link to the puzzles and describe them in my own words; the puzzle texts belong to Advent of Code.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25

The days so far