My solutions to the 2021 edition of Advent of Code.
| Day | Code | Part 1 | Part 2 |
|---|---|---|---|
| 01 | solution | 30305 |
25837 |
| 02 | solution | 28901 |
27385 |
| 03 | solution | 35484 |
38224 |
| 04 | solution | 16816 |
15220 |
| 05 | solution | 34102 |
34491 |
| 06 | solution | 24388 |
35596 |
| 07 | solution | 24460 |
22776 |
| 08 | solution | 28477 |
19462 |
| 09 | solution | 44102 |
41753 |
| 10 | solution | 22459 |
21448 |
| 11 | solution | 31033 |
30752 |
| 12 | solution | 21689 |
19404 |
| 13 | solution | 23492 |
23603 |
| 14 | solution | 8802 |
25076 |
| 15 | solution | 12420 |
27712 |
| 16 | solution | 18284 |
19803 |
| 17 | solution | 11271 |
9781 |
| 18 | solution | 14751 |
14543 |
| 19 | solution | 10450 |
10847 |
| 20 | solution | 15818 |
15485 |
| 21 | solution | 13484 |
13484 |
| 22 | |||
| 23 | |||
| 24 | |||
| 25 |
The third and last row indicate the ranking for each part. Empty cells mean no participation.
I am using the AdventOfCode challenge as a means to familiarize myself with Scala so the code here is by no means the best solution (hence the low rankings XD, and also WHO WAKES UP AT 6AM FOR THIS!?). If you want quality solutions please visit this repo which I like to check after I find a solution for ideas on how to improve my usage of Scala (altought I leave my original answers in this repo for the judgement of everyone else).
This project runs on Scala 3.1.0 and sbt 1.5.5.
STTP client is used to obtain the challenge inputs directly from the web. For it to work you need to provide your session id (once logged in the website check your cookies), copy it in the Support object definition file.
I am using Metals extension on VSCode to run the code directly from the editor. For development purposes I am using the worksheet feature that provides easier interaction, but I don't commit that file because is more of a draft.
MIT