diff options
Diffstat (limited to '2025/README.md')
| -rw-r--r-- | 2025/README.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/2025/README.md b/2025/README.md index 548deb3..c859ec8 100644 --- a/2025/README.md +++ b/2025/README.md | |||
| @@ -11,6 +11,7 @@ Example | |||
| 11 | 11 | ||
| 12 | ``` | 12 | ``` |
| 13 | Day -Part 1- -Part 2- | 13 | Day -Part 1- -Part 2- |
| 14 | 7 00:05:27 00:20:40 | ||
| 14 | 6 00:13:38 01:49:24 | 15 | 6 00:13:38 01:49:24 |
| 15 | 5 00:04:39 00:22:19 | 16 | 5 00:04:39 00:22:19 |
| 16 | 4 00:25:36 00:27:49 | 17 | 4 00:25:36 00:27:49 |
| @@ -85,3 +86,13 @@ smart, very accomplishment. | |||
| 85 | 86 | ||
| 86 | This year so far the only problems that took me more than 30 minutes | 87 | This year so far the only problems that took me more than 30 minutes |
| 87 | are this and the first one, not exactly the hardest problems imaginable. | 88 | are this and the first one, not exactly the hardest problems imaginable. |
| 89 | |||
| 90 | ### Day 7: Laboratories | ||
| 91 | |||
| 92 | This was quite fun! For part 1, I iterate over the rows of the diagram | ||
| 93 | keeping a list of the position currently occupied by a tachyon. I use a | ||
| 94 | Python set to avoid duplicates. Part 2 is very similar, but the set is | ||
| 95 | changed to a map where the keys are the positions and the values are the | ||
| 96 | number of multiverses where a tachyon is in that position. To update | ||
| 97 | this value for the current row, I sum the values of all tachyons that | ||
| 98 | end there from the previous row (that can be one or two tachyons). | ||
