Jonathan Chan
ecb7df09a8
Day 22: Cleanup
2020-12-21 22:43:07 -08:00
Jonathan Chan
5ad3469266
Day 22.
2020-12-21 22:22:38 -08:00
Jonathan Chan
b8a105ee47
Day 21.
2020-12-21 20:50:45 -08:00
Jonathan Chan
ea81f474e8
Updated custom library.
...
This includes removing all of the grid-related functions.
I think they need to be rethunk, since I keep inconsistently using
either (x, y) or (r, c) as coordinates, and those are swapped.
Coordinates should probably also be some sort of position struct.
If I need that old code, I can always just look at last year's library.
2020-12-20 17:57:59 -08:00
Jonathan Chan
ad499ac0f9
Day 20 minor refactoring.
2020-12-20 17:47:00 -08:00
Jonathan Chan
181e53d81a
Day 20, Part 2.
2020-12-20 12:02:02 -08:00
Jonathan Chan
aba1e1dbfe
Day 20, Part 1.
2020-12-19 22:28:05 -08:00
Jonathan Chan
16529eaaba
Day 19.
2020-12-19 00:19:10 -08:00
Jonathan Chan
8204409649
Day 18.
2020-12-17 21:24:19 -08:00
Jonathan Chan
0eb685767c
Day 17: Generalized solution with macros.
2020-12-17 13:45:43 -08:00
Jonathan Chan
24630da977
Minor refactoring for Day 17.
2020-12-16 23:18:59 -08:00
Jonathan Chan
7f1fa39d7c
Day 17.
2020-12-16 22:31:38 -08:00
Jonathan Chan
c392e6420d
Refactored Day 16 again...
2020-12-16 01:33:54 -08:00
Jonathan Chan
309e9769f4
Refactored Day 16 using new lib.rkt additions for string splitting.
2020-12-15 23:52:52 -08:00
Jonathan Chan
77c7e08d8f
Day 16.
2020-12-15 23:45:47 -08:00
Jonathan Chan
b7dd58c577
Day 15, but in Typed Racket.
2020-12-15 17:53:32 -08:00
Jonathan Chan
261f9f4c6c
Refactored Day 15: Using vector instead of hash.
2020-12-14 22:06:08 -08:00
Jonathan Chan
0f5e14363b
Day 15.
2020-12-14 21:46:39 -08:00
Jonathan Chan
a6085863c6
Various refactorings.
2020-12-14 16:49:55 -08:00
Jonathan Chan
5a6bc1e053
Day 14.
2020-12-13 23:16:59 -08:00
Jonathan Chan
73da9905b3
Day 13.
2020-12-12 22:41:31 -08:00
Jonathan Chan
0a60d7e899
Refactored Day 12 and added solution using matrices.
2020-12-12 00:52:51 -08:00
Jonathan Chan
62c1709042
Day 12.
2020-12-11 22:15:48 -08:00
Jonathan Chan
50130c1c1d
Refactored Day 11 again for code style.
2020-12-11 16:15:45 -08:00
Jonathan Chan
7649d689b6
Refactored Day 11 for performance.
2020-12-11 11:02:08 -08:00
Jonathan Chan
5a0a4f002b
Refactored Day 11 minorly.
2020-12-11 00:00:09 -08:00
Jonathan Chan
f047ab3cb1
Added lists->hash to lib.rkt.
2020-12-10 23:48:39 -08:00
Jonathan Chan
9ea0885bbe
Day 11: Use sequences instead of lists. Slight speedup, I guess.
2020-12-10 23:22:08 -08:00
Jonathan Chan
ad1cbc0e9a
Day 11. So slow :(
2020-12-10 22:58:51 -08:00
Jonathan Chan
31d972fe31
Refactored Day 9.
2020-12-10 00:42:27 -08:00
Jonathan Chan
b7faf7c961
Day 10.
2020-12-10 00:13:20 -08:00
Jonathan Chan
bc98c92d53
Day 9.
2020-12-08 21:49:59 -08:00
Jonathan Chan
c0affdfc3c
Alternate solution for Day 8.
2020-12-08 13:33:12 -08:00
Jonathan Chan
4734d43b48
Refactored Day 8.
2020-12-07 23:29:37 -08:00
Jonathan Chan
9e6538d9dd
Day 8.
2020-12-07 22:29:11 -08:00
Jonathan Chan
dfbd88f6e0
Minor refactoring of Days 1 - 7.
2020-12-07 20:49:06 -08:00
Jonathan Chan
0dbe56a244
Fix library; use threading in Day 7.
2020-12-07 00:45:50 -08:00
Jonathan Chan
19e87e9dfc
Refactored Day 7.
2020-12-06 23:28:11 -08:00
Jonathan Chan
e88ffd6961
Day 7.
2020-12-06 22:15:36 -08:00
Jonathan Chan
a263f25774
Remove unused library functions.
2020-12-05 22:29:48 -08:00
Jonathan Chan
044d2def4b
Day 6; some refactoring to use new problem-input-grouped and $.
2020-12-05 22:00:08 -08:00
Jonathan Chan
b2f90bc79b
Refactored Day 5.
2020-12-04 22:37:36 -08:00
Jonathan Chan
eda88ed824
Day 5.
2020-12-04 22:20:23 -08:00
Jonathan Chan
27f527a3cb
Refactored Day 4.
2020-12-04 12:48:29 -08:00
Jonathan Chan
1203dc4a1d
Day 4.
2020-12-03 22:45:29 -08:00
Jonathan Chan
bbdc3cd4e8
Day 3.
2020-12-02 21:34:24 -08:00
Jonathan Chan
f0034917b8
Days 1 and 2.
2020-12-02 19:21:35 -08:00
Jonathan Chan
110078f71c
Initial commit.
2020-12-02 19:21:24 -08:00