This repository contains my solutions to the Advent of Code 2025. My goal is to solve every puzzle using nothing else but base R. No packages! (EDIT: except what turned out to be an obvious integer linear programming problem in Day 10, Part 2.)
- Day 1 puzzle - my solution
- Day 2 puzzle - my solution
- Day 3 puzzle - my solution
- Day 4 puzzle - my solution
- Day 5 puzzle - my solution
- Day 6 puzzle - my solution
- Day 7 puzzle - my solution
- Day 8 puzzle - my solution
- Day 9 puzzle - my solution
- Day 10 puzzle - my solution
- Day 11 puzzle - my solution
- Day 12 puzzle - my solution
Several reasons. First, R is my favourite programming language. There, I said it.
More accurately, my original plan was to use the 2025 edition to learn an array programming language (maybe APL), especially given the more relaxed pace of Advent of Code this year with fewer puzzles. Oh how naive I was. There was absolutely zero chance that I would manage to learn a challenging new programming language while battling with algorithms at the same time. Anyway, being a vectorized functional programming language, R is perhaps not that far off, so I decided to stick with it again. Fair warning if you end up looking at my code: at every point I focused on maximizing fun and the attitude of "I wonder if I could do it like that?" over pure efficiency.