Commit Graph

30 Commits

Author SHA1 Message Date
Jonathan Chan 4dffed6399 Day 16: Part 1. 2019-12-15 23:31:42 -08:00
Jonathan Chan 77f22cfc47 Use specialized not-equals functions (!=, nchar=?) instead of general neq? function. 2019-12-15 22:57:31 -08:00
Jonathan Chan 9d9dc6109a 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
2019-12-15 22:51:20 -08:00
Jonathan Chan c1acc1ba25 Day 14! 2019-12-14 23:53:38 -08:00
Jonathan Chan 777cb40767 Day 13. 2019-12-12 22:49:37 -08:00
Jonathan Chan a25122da57 Day 12: Part 2. 2019-12-12 15:57:17 -08:00
Jonathan Chan ad4c28e091 Day 3: Cleaned up a bit. 2019-12-12 13:02:35 -08:00
Jonathan Chan d14c0cc1e8 Day 12: Part 1, with a Part 2 that is too slow :( 2019-12-11 23:28:53 -08:00
Jonathan Chan 154b2f33ed Abstracted message-printing from days 11 and 8; Added fancy symbols for currying, uncurrying, and composition. 2019-12-11 13:54:01 -08:00
Jonathan Chan ce29e2e206 Day 11. 2019-12-10 23:16:39 -08:00
Jonathan Chan 3c4f817729 Day 10: Use atan2 instead of dividing into different cases. 2019-12-10 14:36:17 -08:00
Jonathan Chan ec43c29435 Day 10: Part 2. 2019-12-10 13:18:04 -08:00
Jonathan Chan 9f614b8616 Day 10: Part 1. 2019-12-10 00:16:52 -08:00
Jonathan Chan 11b5812975 Added comments for IntCode interpreter, esp. the code to do with states. 2019-12-09 13:17:33 -08:00
Jonathan Chan 53da35fdac Modified IntCode interpreter to return a state on input/output/halt. 2019-12-09 13:09:16 -08:00
Jonathan Chan 28a510f3ec Day 9; Cleanup of IntCode interpreter and solutions from past days. 2019-12-08 23:29:20 -08:00
Jonathan Chan e16d1abe4d Day 8: Use an actual whitespace character instead of a light-grey box. 2019-12-07 22:26:33 -08:00
Jonathan Chan c3f9b912f3 Day 8: Fix typo. 2019-12-07 22:21:05 -08:00
Jonathan Chan 1df4ec737e Day 8. 2019-12-07 21:53:07 -08:00
Jonathan Chan 9dddb473a8 Day 7: Part 2 done. 2019-12-07 19:46:28 -08:00
Jonathan Chan d0f8275543 Day 7: Part 1 complete, part 2 not working. 2019-12-07 00:17:16 -08:00
Jonathan Chan 55859ac314 Day 6. 2019-12-05 23:28:02 -08:00
Jonathan Chan 231677cadf Day 5: Some cleanup. 2019-12-05 15:51:52 -08:00
Jonathan Chan 94f41f4d04 Day 5. 2019-12-05 00:39:19 -08:00
Jonathan Chan 5770d0a9de Day 4. 2019-12-03 22:12:31 -08:00
Jonathan Chan 12256fa329 Day 3: Cleanup-ish. 2019-12-03 21:20:46 -08:00
Jonathan Chan 55d036e9a6 Day 3. It's ugly don't look at it. 2019-12-03 20:46:04 -08:00
Jonathan Chan 8c3e0ddf94 Day 02. I'll add comments later. 2019-12-02 01:25:42 -08:00
Jonathan Chan 043e6e5bff Day 1: Replaced comment box with block comment. 2019-11-30 21:43:52 -08:00
Jonathan Chan d86fa6bcdf Day 1. 2019-11-30 21:37:37 -08:00