aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Pre-Multiply conversion back to fish-space and sum-up operation.Andreas Grois2021-12-111-108/+14
| | | | This saves 72 complex constants.
* Add day 6 solutions. Both, naive and more elaborate.Andreas Grois2021-12-113-0/+815
| | | | | | | | | | The naive implementation uses simple ring buffers and scales linearly with the number of days needed. The matrix based implementation uses matrix multiplication (implemented in a brain-dead way inline here) and has the same scaling behaviour, however implementing it showed that the matrix is correct. The closed form is, well, a closed form based on the matrix based solution, but working in the matrix' Eigenspace.
* Clean up day 5 a bit.Andreas Grois2021-12-081-25/+11
|
* Day 5, part 2. Ugly.Andreas Grois2021-12-081-3/+130
|
* First part of day 5Andreas Grois2021-12-082-0/+260
|
* Add simpler (but marginally slower) second solution for day4, part2Andreas Grois2021-12-071-2/+34
|
* Day 4: Won cards now track their full score, and the round the won in.Andreas Grois2021-12-071-30/+29
|
* Part 2 of day 4. Ugly, but it works.Andreas Grois2021-12-061-12/+96
|
* Make Bingo Cards use algebraic sumAndreas Grois2021-12-061-80/+158
|
* Let's not talk about the other solutions, 'kay?Andreas Grois2021-12-061-0/+11
|
* First working (but ugly) day4, part 1 solution.Andreas Grois2021-12-062-0/+409
| | | | | | | | | Needs to be refactored. Game should be made an enum, that distinguishes between running and completed games. Completed games should only have their score as data, no more details. Methods should be limited to the respective variant. BingoGame should _not_ be made into an enum, as players might keep playing after the first one has won.
* Get rid of stupid helper module. Was tired, wrote bad code.Andreas Grois2021-12-051-5/+4
|
* Remove dependency on unsafe dyn-cloneAndreas Grois2021-12-041-8/+20
|
* Prepare day 3 part 2 for additional solvers.Andreas Grois2021-12-041-12/+15
|
* early out with try_fold and references instead of copiesAndreas Grois2021-12-041-15/+21
|
* MinorAndreas Grois2021-12-041-8/+7
|
* First working day3 part 2 implementation. It sucks.Andreas Grois2021-12-042-0/+126
|
* Add infallible accumulator type day 1 solution.Andreas Grois2021-12-031-21/+85
| | | | What a waste of time...
* Add AccumulatorType solution for day 1. Currently inefficient.Andreas Grois2021-12-031-0/+71
|
* Day 2 and some additional Day 1 solutionsAndreas Grois2021-12-023-1/+182
|
* InitialAndreas Grois2021-12-022-0/+21