Added puzzle commentary for day 24
This commit is contained in:
parent
859a5db921
commit
33e7b64276
|
@ -126,9 +126,15 @@ Here I calculate how a beam traverses through the grid until it is reflected out
|
|||
|
||||
Once this was solved for one starting beam in part 1, I just iterated over all possible starting beams to find the maximum for part 2.
|
||||
|
||||
## Day 24: Never Tell Me the Odds
|
||||
|
||||
<https://adventofcode.com/2023/day/24>
|
||||
|
||||
While I found part 1 quite trivial, part 2 left me with the feeling that my approach might be mad. Eventually, I managed to find the ray hitting all other rays by solving the general equation system for three known and one unknown rays with some minor shortcuts for this particular problem, since here we can assume to have a unique solution. However, this involved excessive manual pre-calculations, arbitrary length integer arithmetic, and a root finder for general polynomials, all implemented by myself without additional third-party libraries.
|
||||
|
||||
## License
|
||||
|
||||
Copyright (C) 2023 Stefan Müller
|
||||
Copyright (C) 2023-2024 Stefan Müller
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
|
|
Loading…
Reference in New Issue