From eb233235c876600bafa39a538d18ce11cfc72b39 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 7 Dec 2025 09:14:27 +0100 Subject: Clean up and alternative solution to day 7 --- 2025/README.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to '2025/README.md') diff --git a/2025/README.md b/2025/README.md index c859ec8..4ca1d2e 100644 --- a/2025/README.md +++ b/2025/README.md @@ -96,3 +96,7 @@ changed to a map where the keys are the positions and the values are the number of multiverses where a tachyon is in that position. To update this value for the current row, I sum the values of all tachyons that end there from the previous row (that can be one or two tachyons). + +I added a second solution for part 2 that does not use a map, but only +lists. This could be seen as a dynamic programming problem where the +iterative implementation is more intuitive than the recursive one. -- cgit v1.3