These are my solutions for Advent of Code (AoC) 2020.
At work, we had been using Elixir for some backend services, which made me want to deepen my familiarity with the language. That’s how I ended up choosing it for this year’s Advent of Code.
Each day is implemented in a separate file. (or in the case of Days 01-08, one file for each part)
You can run them like this:
elixir <day>/<solution_file>.ex <input_file>Example:
./run.sh 01/Day01-1.ex 01/input
To run the test suite:
./test.sh
| Day | Part 1 | Part 2 |
|---|---|---|
| 1 | ✅ | ✅ |
| 2 | ✅ | ✅ |
| 3 | ✅ | ✅ |
| 4 | ✅ | ✅ |
| 5 | ✅ | ✅ |
| 6 | ✅ | ✅ |
| 7 | ✅ | ✅ |
| 8 | ✅ | ✅ |
| 9 | ✅ | ✅ |
| 10 | ✅ | ✅ |
| 11 | ✅ | ✅* |
| 12 | ||
| 13 | ||
| 14 | ||
| 15 | ||
| 16 | ||
| 17 | ||
| 18 | ||
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | ||
| 23 | ||
| 24 | ||
| 25 |
* Day 11 part 2 is incredibly slow at the moment. Will need to see if it can be optimized later.