Jonathan Chan
0ae16b5856
Day 23: Complete refactor, with Part 2 complete.
2024-12-10 08:32:07 -05:00
Jonathan Chan
d3e84fa8d0
Day 23: Attempt with C, but I don't think it's working...
2024-12-10 08:32:07 -05:00
Jonathan Chan
93c42a5696
Day 23: Part 1.
2024-12-10 08:32:07 -05:00
Jonathan Chan
b744a6f2d9
Day 22: Minor refactoring.
2024-12-10 08:32:07 -05:00
Jonathan Chan
ab0a576334
Day 22: Cleanup
2024-12-10 08:32:07 -05:00
Jonathan Chan
515621bbd5
Day 22.
2024-12-10 08:32:07 -05:00
Jonathan Chan
72f7cc28ef
Day 21.
2024-12-10 08:32:07 -05:00
Jonathan Chan
1da1b714b5
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.
2024-12-10 08:32:07 -05:00
Jonathan Chan
178c6ab04f
Day 20 minor refactoring.
2024-12-10 08:32:07 -05:00
Jonathan Chan
83be0e883b
Day 20, Part 2.
2024-12-10 08:32:07 -05:00
Jonathan Chan
023b9d7d73
Day 20, Part 1.
2024-12-10 08:32:07 -05:00
Jonathan Chan
2093a7fbda
Day 19.
2024-12-10 08:32:07 -05:00
Jonathan Chan
7c4f04b2bb
Day 18.
2024-12-10 08:32:07 -05:00
Jonathan Chan
56ff3da7d8
Day 17: Generalized solution with macros.
2024-12-10 08:32:07 -05:00
Jonathan Chan
d74563093e
Minor refactoring for Day 17.
2024-12-10 08:32:07 -05:00
Jonathan Chan
71bb7a7b98
Day 17.
2024-12-10 08:32:07 -05:00
Jonathan Chan
a6fecd88ce
Refactored Day 16 again...
2024-12-10 08:32:07 -05:00
Jonathan Chan
6e1c143815
Refactored Day 16 using new lib.rkt additions for string splitting.
2024-12-10 08:32:07 -05:00
Jonathan Chan
dac4ca5b33
Day 16.
2024-12-10 08:32:07 -05:00
Jonathan Chan
3c27a50bb5
Day 15, but in Typed Racket.
2024-12-10 08:32:07 -05:00
Jonathan Chan
9c9511a05b
Refactored Day 15: Using vector instead of hash.
2024-12-10 08:32:07 -05:00
Jonathan Chan
4a858eca81
Day 15.
2024-12-10 08:32:07 -05:00
Jonathan Chan
2f2945614c
Various refactorings.
2024-12-10 08:32:07 -05:00
Jonathan Chan
3e20829bdf
Day 14.
2024-12-10 08:32:07 -05:00
Jonathan Chan
41f9a58993
Day 13.
2024-12-10 08:32:07 -05:00
Jonathan Chan
637477664a
Refactored Day 12 and added solution using matrices.
2024-12-10 08:32:07 -05:00
Jonathan Chan
417a6c7ddd
Day 12.
2024-12-10 08:32:07 -05:00
Jonathan Chan
9ea5f8de27
Refactored Day 11 again for code style.
2024-12-10 08:32:07 -05:00
Jonathan Chan
7946946bd7
Refactored Day 11 for performance.
2024-12-10 08:32:07 -05:00
Jonathan Chan
4dc2dd17d9
Refactored Day 11 minorly.
2024-12-10 08:32:07 -05:00
Jonathan Chan
8c74ddea41
Added lists->hash to lib.rkt.
2024-12-10 08:32:07 -05:00
Jonathan Chan
1e2c6a0b8b
Day 11: Use sequences instead of lists. Slight speedup, I guess.
2024-12-10 08:32:07 -05:00
Jonathan Chan
488e3dc517
Day 11. So slow :(
2024-12-10 08:32:07 -05:00
Jonathan Chan
5706b2c671
Refactored Day 9.
2024-12-10 08:32:07 -05:00
Jonathan Chan
38209a6ce6
Day 10.
2024-12-10 08:32:07 -05:00
Jonathan Chan
1b065d7cce
Day 9.
2024-12-10 08:32:07 -05:00
Jonathan Chan
4ce6e3bb0c
Alternate solution for Day 8.
2024-12-10 08:32:07 -05:00
Jonathan Chan
d8c6e95046
Refactored Day 8.
2024-12-10 08:32:07 -05:00
Jonathan Chan
ff28685df8
Day 8.
2024-12-10 08:32:07 -05:00
Jonathan Chan
9307d1c01d
Minor refactoring of Days 1 - 7.
2024-12-10 08:32:07 -05:00
Jonathan Chan
452ffe283b
Fix library; use threading in Day 7.
2024-12-10 08:32:07 -05:00
Jonathan Chan
46e2daa9af
Refactored Day 7.
2024-12-10 08:32:07 -05:00
Jonathan Chan
8db4b43523
Day 7.
2024-12-10 08:32:07 -05:00
Jonathan Chan
fcc51e1b9c
Remove unused library functions.
2024-12-10 08:32:07 -05:00
Jonathan Chan
9ae585ebed
Day 6; some refactoring to use new problem-input-grouped and $.
2024-12-10 08:32:07 -05:00
Jonathan Chan
18f13a4da3
Refactored Day 5.
2024-12-10 08:32:07 -05:00
Jonathan Chan
6073a6a75d
Day 5.
2024-12-10 08:32:07 -05:00
Jonathan Chan
ee339873c6
Refactored Day 4.
2024-12-10 08:32:07 -05:00
Jonathan Chan
8e80a1a618
Day 4.
2024-12-10 08:32:07 -05:00
Jonathan Chan
51d5a9006f
Day 3.
2024-12-10 08:32:07 -05:00