Advent of Code solutions, primarily with the aim of building some Scala muscle. The focus is on writing primarily clean, readable code, and second comes writing code in as close to a pure functional style as possible, with zero side-effects. I will use mutable state where its pragmatic and where a pure functional solution requires too much gymnastics and/or has a chance of making the code too non-performant. A lot of solutions therefore deliberately introduce explicit types, and instead of aiming to be super-concise, break the problem down into cleaner functions that build to a solution, and sometimes use mutable arrays etc.
Day | Solutions |
---|---|
01 | Part 1 & 2 |
02 | Part 1 & 2 |
03 | Part 1 & 2 |
04 | Part 1 & 2 |
05 | Part 1 & 2 |
06 | Part 1 & 2 |
07 | Part 1 & 2 |
08 | Part 1 & 2 |
09 | Part 1 & 2 |
10 | Part 1 & 2 |
Day | Solutions |
---|---|
01 | Part 1 Part 2 |
02 | Part 1 Part 2 |
03 | Part 1 & 2 |
04 | Part 1 & 2 |
05 | Part 1 & 2 |
06 | Part 1 & 2 |
07 | Part 1 & 2 |
All credit to the authors for the problems. They are reproduced in this repository merely to have a description proximate to the solutions