File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Advent of Code 2020
2
2
3
- ## Days 1 - 7
3
+ ## Days 1 - 7:
4
4
5
5
I started writing notes on the 8th day, so I'm planning to go back and cover
6
6
the first week when I have a chance.
@@ -95,3 +95,21 @@ two. Also known as the "tribonacci" sequence, apparently.
95
95
So, I mapped the runLengths of ones through my ` fib3 ` function, and multiplied
96
96
them all together. Boom. The example answer matched my result, and running it
97
97
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 ` .
You can’t perform that action at this time.
0 commit comments