Skip to content

jeroenheijmans/advent-of-code-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024

Solutions to the Advent of Code 2024 edition by Jeroen Heijmans.

Running

Prerequisite: Bun. Also make sure there is a dayXX.txt file next to each spec with your puzzle input.

bun test --watch

or one specific day:

bun test --watch day08

Lessons

Here's what I learned (or noticed) each day.

  1. Intellisense is more important than I thought.
  2. Gotta take your time!
  3. Copilot for AoC can be no fun.
  4. There shall be no premature optimization!
  5. Saving intermediate but wrong steps helps!
  6. Sometimes the first part is easy.
  7. Sometimes the hard part comes first.
  8. Avoiding math can be useful.
  9. Be glad that smart folks write (de)fragmenters.
  10. If you understand the lesson, stop here; otherwise, see lesson 10.
  11. You've got to memoize important things!
  12. Take a bit of luck if you can catch it.
  13. Listen to your Math teacher, kids!
  14. Don't solve part 2 until you know what part 2 is.
  15. Always check input and output carefully.
  16. Persistence is a virtue and a curse, sometimes.
  17. TODO
  18. Reusable code can be useful even in Advent of Code.
  19. Past experience can be king.
  20. Shower thoughts can be useful!
  21. Gut feelings are not the same as getting lucky.
  22. Optimizing code is not for everyone.
  23. Slow can be just fine sometimes.
  24. TODO
  25. TODO

Bonus:

  • aoc.infi.nl taught me that A-Frame trumps straight up ThreeJS for small experiments!

Compendium Repositories

I've created a browser extension for Google Chrome and Mozilla Firefox. It is open source to spice up your private leaderboard page with graphs if you want to contribute!

Here's direct links to every year's solutions I have so far:

About

Solutions for Advent of Code 2024

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published