Jonathan Chan
7873fda361
Refactored IntCode to internally use a hashmap instead of a vector.
2024-12-10 08:25:34 -05:00
Jonathan Chan
9548612f61
Day 17.
2024-12-10 08:25:34 -05:00
Jonathan Chan
29af3fa2b2
Day 16: Part 2.
2024-12-10 08:25:34 -05:00
Jonathan Chan
58048e4998
Day 16: Part 1.
2024-12-10 08:25:34 -05:00
Jonathan Chan
e3d0c0aee8
Use specialized not-equals functions (!=, nchar=?) instead of general neq? function.
2024-12-10 08:25:34 -05:00
Jonathan Chan
abfec61775
Day 15. Also, some code cleanup:
...
- Modified IntCode interpreter to be entirely functional (via functional
vector-set!*) and fixed a bug
- Removed `zip` since it can be implemented as map
- Reimplemented `transpose` more idiomatically
- Added functions for creating, converting, displaying grids stored in
vector, list, and hashtable forms
2024-12-10 08:25:34 -05:00
Jonathan Chan
ce67c75159
Day 14!
2024-12-10 08:25:34 -05:00
Jonathan Chan
a3ee2b428a
Day 13.
2024-12-10 08:25:34 -05:00
Jonathan Chan
3ce83e7f43
Day 12: Part 2.
2024-12-10 08:25:34 -05:00
Jonathan Chan
23d605ab45
Day 3: Cleaned up a bit.
2024-12-10 08:25:34 -05:00
Jonathan Chan
301f30268e
Day 12: Part 1, with a Part 2 that is too slow :(
2024-12-10 08:25:34 -05:00
Jonathan Chan
bdf1332d62
Abstracted message-printing from days 11 and 8; Added fancy symbols for currying, uncurrying, and composition.
2024-12-10 08:25:34 -05:00
Jonathan Chan
871b1f1b10
Day 11.
2024-12-10 08:25:34 -05:00
Jonathan Chan
56aacd00fd
Day 10: Use atan2 instead of dividing into different cases.
2024-12-10 08:25:34 -05:00
Jonathan Chan
80b25a4095
Day 10: Part 2.
2024-12-10 08:25:34 -05:00
Jonathan Chan
fd9e2bade8
Day 10: Part 1.
2024-12-10 08:25:34 -05:00
Jonathan Chan
ced4bed40e
Added comments for IntCode interpreter, esp. the code to do with states.
2024-12-10 08:25:34 -05:00
Jonathan Chan
a9789ec9ed
Modified IntCode interpreter to return a state on input/output/halt.
2024-12-10 08:25:34 -05:00
Jonathan Chan
c0670a74b1
Day 9; Cleanup of IntCode interpreter and solutions from past days.
2024-12-10 08:25:34 -05:00
Jonathan Chan
59b628be64
Day 8: Use an actual whitespace character instead of a light-grey box.
2024-12-10 08:25:34 -05:00
Jonathan Chan
d88fcf2a60
Day 8: Fix typo.
2024-12-10 08:25:34 -05:00
Jonathan Chan
39c4c4a951
Day 8.
2024-12-10 08:25:34 -05:00
Jonathan Chan
5e25f9fd27
Day 7: Part 2 done.
2024-12-10 08:25:34 -05:00
Jonathan Chan
2d67f04d6b
Day 7: Part 1 complete, part 2 not working.
2024-12-10 08:25:34 -05:00
Jonathan Chan
7df8cc0336
Day 6.
2024-12-10 08:25:34 -05:00
Jonathan Chan
d762ed6cb5
Day 5: Some cleanup.
2024-12-10 08:25:34 -05:00
Jonathan Chan
ee4ca7279d
Day 5.
2024-12-10 08:25:34 -05:00
Jonathan Chan
6ad4c77ce1
Day 4.
2024-12-10 08:25:34 -05:00
Jonathan Chan
a588c9b2d1
Day 3: Cleanup-ish.
2024-12-10 08:25:34 -05:00
Jonathan Chan
a682d29945
Day 3. It's ugly don't look at it.
2024-12-10 08:25:34 -05:00
Jonathan Chan
7a1101c69f
Day 02. I'll add comments later.
2024-12-10 08:25:34 -05:00
Jonathan Chan
a14466c2c2
Day 1: Replaced comment box with block comment.
2024-12-10 08:25:34 -05:00
Jonathan Chan
0bcab1f340
Day 1.
2024-12-10 08:25:34 -05:00
Jonathan Chan
2b4c04735b
Initial commit
2024-12-10 08:17:53 -05:00