Skip to content

Commit 3d2afdd

Browse files
committed
more notes
1 parent 720449c commit 3d2afdd

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

readme.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Advent of Code 2020
22

3-
## Days 1 - 7
3+
## Days 1 - 7:
44

55
I started writing notes on the 8th day, so I'm planning to go back and cover
66
the first week when I have a chance.
@@ -95,3 +95,21 @@ two. Also known as the "tribonacci" sequence, apparently.
9595
So, I mapped the runLengths of ones through my `fib3` function, and multiplied
9696
them all together. Boom. The example answer matched my result, and running it
9797
against the full input was successful as well, and instantaneous.
98+
99+
100+
## Day 11:
101+
102+
Sort of a game of life simulation but with seating charts. As with all of these
103+
I'm sure my solution is naive and slow, and I'm working on a rewrite before I
104+
complete the second part...
105+
106+
107+
## Day 12:
108+
109+
Completed this one after a trip to the beach. The most difficult part of it was
110+
parsing the input correctly; it had been a while since I last worked with
111+
Parsec. I had also initially used `foldr` instead of `foldl'`, which was
112+
applying ship instructions in reverse -- this actually worked for part one, but
113+
since the instructions in part two are order dependant, it was completely wrong
114+
even on the first instruction. I finally realized my mistake after stepping
115+
through the solver function with `Debug.Trace`.

0 commit comments

Comments
 (0)