Advent of code in review
At the time of writing, we are coming to the end of January/start of February and it is just about time for an Advent of Code 2023 retrospective. This year we had ~80 Ansys employees (so far) tackle at least one of the 50 challenges;of course, anyone at Ansys is welcome to retroactively go back and tackle all the challenges after advent as well, so those numbers may still change. The event may primarily last through advent, but it is not exclusive to it and since next year is the 10th anniversary of the event the opportunity will arise to get into the prestigious 500 star club. Each year offers 50 stars, and the first event was in 2015, so by the end of 2024 there will be a maximum number of stars available of 500. I think a lot of people will be gunning for that achievement as we look ahead. But anyway, here and now, advent of code 2023 is complete! We had a great turnout this year and a lot of discussions around the event. Nine people completed every challenge on every day, and a huge congratulations to all of them! It is an achievement in and of itself to finish at all so I want to extend a huge congrats to everyone that got that far. An additional round of applause is deserved for all those who took on the Advent in “hard mode” by doing it in a new language. I used Rust myself and learned a lot about it in the process.Retrospective
I am breaking this section into two parts. First is a short perspective piece about how everything felt for me as a participant, but then in part 2 I have broken out the Python to do some more objective comparisons with previous years!Part 1: my perspective
I think this year felt a lot harder than previous years to me (having done 2022 at the time and gone back to tackle some of 2021 since as well). Especially since it started off hard with a somewhat infamous edge-case in the input that wasn’t explicitly tested in the example (shouldeightwo be parsed as 8, 2 or just 8 or just 2?). Strange edge-cases in the input would become a theme this year. Additionally, as the days progressed I felt like this year’s specialist subject was Lowest Common Multiple or remainder theorems. I felt like I encountered problems requiring that kind of solution disproportionately more, as did my friends that were doing it with me. In contrast, last year, breadth-first and depth-first searches cropped up more than anything else with a friend of mine saying he implemented them 5 separate times over the course of advent. I am sure I tackled LCM-like problems at least 3 separate days this time. Of course, I am also really bad at LCM problems, so it’s possible I notice them more.
When considering the “hardest” days overall, though, quite a few stand out significantly to me.
- Day 1
- Day 12
- Day 21
Part 2: statistics! Yeah!
This year, though it’s quite easy to identify the “hard” days, by looking at the drop off rate day to day on the global completion stats (Figure 1). Easy Part 2s tend to have high Part 2-to-Part 1 completion ratios (unsurprisingly) and harder days tend to have more significant drops in completion from the day before. Easier days tend to have little to no drop off (there is almost always some drop in completions) except on rare occasions where an increase indicates a particularly accessible day. Days 6, 9, and 15 seem to stand out this year in particular. Although it should be noted these indicate relative difficulty to the previous challenge and this is all correlation not causation. There could be other factors at play and if you find the “easy” days hard or the “hard” days easy, you are not alone, nor are you odd for doing so. This is all subjective.- Total Participants - total number of people completing at least one part each day
- Total Participant Retention - total number of people completing at least one part each day as a fraction of the initial number on Day 1
- Participant Participation Relative to Previous Day - total number of people completing at least one part each day as a percentage of people compared to the number the previous day. E.g. if Day 3 had 3000 people and Day 2 had 1500 people then Day 2 would register as 50%.
- Part 2 Completion Percentage - total number of people that completed part 2 on a given day as the percentage of people that completed any part on that day.



