jasonsackey.com

Advent of code 2024 preparation

2024-11-30

The yearly competitive coding puzzle event in the form of an advent calendar starts very soon: 25 days of programming challenges. Each day from the 1st to the 25th of December, a new 2-part puzzle is released. Completion of a part awards one a star. Last year I got 11 out of 50.

I’ll paste my personal leaderboard (for the 2023 set) here:

      --------Part 1---------   --------Part 2---------
Day       Time    Rank  Score       Time    Rank  Score
  6       >24h   94062      0       >24h   92558      0
  5       >24h   92827      0          -       -      -
  4       >24h  120471      0       >24h  108185      0
  3   15:45:52   65508      0       >24h  107975      0
  2       >24h  102830      0       >24h  103521      0
  1   18:34:47  134604      0       >24h  136745      0

The competitive aspect is in trying to be one of the first to solve a puzzle - the first 100 get points. I wasn’t going for speed last year, nor am I focusing on speed this year.

I’m giving it a go, at my own pace.

I’ve prepared a repo for it:

https://github.com/sackeyjason/advent-of-code-2024

My plan for this year:

Some programmers use this an opportunity to test out a new language. Other have made competition-oriented languages to give them an edge at tackling these puzzles quickly.

I’m just using plain good old JS.

I’ve prepared a function to load text files into memory. I’ll add other util functions as I go along.

More AoC updates to come.

Update:

I did the first few days. Then took a break.

Here are my results:

      --------Part 1--------   --------Part 2--------
Day       Time   Rank  Score       Time   Rank  Score
  6       >24h  71360      0       >24h  65456      0
  5   19:27:40  68231      0   19:29:04  58251      0
  4   09:19:02  47336      0   09:56:23  42274      0
  3   03:39:24  34809      0   03:49:20  27518      0
  2   03:37:35  31789      0   15:15:44  68253      0
  1   05:07:52  28489      0   05:22:38  27277      0

A strong start. Then it got a bit tiresome. I plan to give it another go next year.