diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-05 06:39:31 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-05 06:39:31 +0100 |
| commit | 424ffd61c58eb127f9a657a854737e2d82368217 (patch) | |
| tree | 6b3504b264cc9dec2c2f38c7312eb5b766114f2f /2025/README.md | |
| parent | 10caeb18b9c224c8b42ca724e956dba35807ec2c (diff) | |
| download | aoc-424ffd61c58eb127f9a657a854737e2d82368217.tar.gz aoc-424ffd61c58eb127f9a657a854737e2d82368217.zip | |
Day 5 2025
Diffstat (limited to '2025/README.md')
| -rw-r--r-- | 2025/README.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/2025/README.md b/2025/README.md index 8fccef4..a77c168 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 | 5 00:04:39 00:22:19 | ||
| 14 | 4 00:25:36 00:27:49 | 15 | 4 00:25:36 00:27:49 |
| 15 | 3 00:05:02 00:16:09 | 16 | 3 00:05:02 00:16:09 |
| 16 | 2 00:10:36 00:11:55 | 17 | 2 00:10:36 00:11:55 |
| @@ -61,3 +62,10 @@ out of bounds. | |||
| 61 | 62 | ||
| 62 | For part 2 I decided to quickly code the dumb "repeat part 1 until no | 63 | For part 2 I decided to quickly code the dumb "repeat part 1 until no |
| 63 | rolls are removed" strategy and it worked. | 64 | rolls are removed" strategy and it worked. |
| 65 | |||
| 66 | ### Day 5: Cafeteria | ||
| 67 | |||
| 68 | Part 2 required a little bit of thinking to handle overlaps correctly | ||
| 69 | - at first I wrote a solution that did not handle overlaps, then one | ||
| 70 | that can only handle single overlaps, and finally one that works in | ||
| 71 | every case. My final solution is quite straightforward. | ||
