Commit Graph

38 Commits (aec57c8690d4efd8f294f3ecd96dc5c8afb723a8)

Author SHA1 Message Date
Nick Krichevsky aec57c8690 Make input parsing more defensive 2021-12-09 02:11:30 -05:00
Nick Krichevsky e45adacf15 Add solution to day 9 part 2 2021-12-09 02:09:26 -05:00
Nick Krichevsky 95a984fac4 Refactor day 9 part 1 in preperation for part 2 2021-12-09 01:10:56 -05:00
Nick Krichevsky bf1614a867 Add day 9 part 1 solution 2021-12-09 01:04:43 -05:00
Nick Krichevsky 92744b64cd Clean up dereferences in day 8 2021-12-08 22:46:08 -05:00
Nick Krichevsky d4cec854cf Add snarky comment to day 8 2021-12-08 02:25:59 -05:00
Nick Krichevsky dd817d4535 Add macro for debug prints to make day 8 output more managable 2021-12-08 02:23:28 -05:00
Nick Krichevsky 21235c33ea Add part 2 solution to day 6 2021-12-08 02:23:14 -05:00
Nick Krichevsky cb6be97cf3 Add day 8 part 1 solution 2021-12-08 00:37:52 -05:00
Nick Krichevsky 54b858285a Don't allocate the results in day 7 2021-12-07 00:23:14 -05:00
Nick Krichevsky a436484267 Add day 7 2021-12-07 00:20:00 -05:00
Nick Krichevsky ed19b7a4c8 Update day 6 to be more efficient, solve part 2 2021-12-06 03:15:23 -05:00
Nick Krichevsky b42b2b6e8f Add day 6 part 1 solution 2021-12-06 00:26:01 -05:00
Nick Krichevsky eb90877d57 Fix import stylization in day 5 2021-12-05 02:20:27 -05:00
Nick Krichevsky 217350a7a8 Add day 5 solution 2021-12-05 02:08:59 -05:00
Nick Krichevsky 59892c3d69 Use 'terminated' in day 4 parser to remove unneeded use of _ 2021-12-04 23:22:09 -05:00
Nick Krichevsky 66f55416e2 Clarify comments in day 4 2021-12-04 23:14:36 -05:00
Nick Krichevsky 79157ac622 Simplify parsing logic in day 4, add error case for wrong board size 2021-12-04 21:23:18 -05:00
Nick Krichevsky ce9fb3e431 Handle multiple winners in a day 4 turn a bit more gracefully 2021-12-04 14:00:00 -05:00
Nick Krichevsky 846b02a815 Add day 4 solution 2021-12-04 13:49:51 -05:00
Nick Krichevsky b5cd02fab1 Add missing index operator in day 3 2021-12-04 12:29:36 -05:00
Nick Krichevsky 7f00b86363 Remove 'overload' of counting bits in day 3 2021-12-03 03:05:26 -05:00
Nick Krichevsky 30ebe5d68e use .retain instead of filtering and reassigning in day 3 2021-12-03 02:54:20 -05:00
Nick Krichevsky c2a3572537 Clean up day 3 by moving bit counts into its own method 2021-12-03 02:46:29 -05:00
Nick Krichevsky 851908b5af Remove unused Add implementation on day 3 2021-12-03 02:32:41 -05:00
Nick Krichevsky 0542510aa3 Clean up day 3 2021-12-03 02:09:54 -05:00
Nick Krichevsky 22a1f17c3f Add day 3 solution 2021-12-03 01:36:44 -05:00
Nick Krichevsky 75de1124df Correctly check if digit is ascii
prevents possible panic if passed unicode
2021-12-02 01:19:51 -05:00
Nick Krichevsky 548597cd41 Explain my ridiculous use of parser combinators in day 2 2021-12-02 01:15:49 -05:00
Nick Krichevsky 9d2099d76e Add comment about assertion in day 2 2021-12-02 01:11:55 -05:00
Nick Krichevsky 33b3d303a0 Avoid unneeded heap allocation in day 2 2021-12-02 00:48:01 -05:00
Nick Krichevsky 445d09cbd7 Add day 2 solution 2021-12-02 00:40:45 -05:00
Nick Krichevsky 5fb79bde9d Add clippy to day 1 2021-12-01 01:17:35 -05:00
Nick Krichevsky 0f2875c9ae Minor cleanup to day 1 part 1 2021-12-01 00:58:05 -05:00
Nick Krichevsky 3d5e96dd93 Add alternate itertools solution to day 1 2021-12-01 00:52:46 -05:00
Nick Krichevsky 3e8c8b958e Add day 1 solution 2021-12-01 00:44:45 -05:00
Nick Krichevsky 453e511180 Add gitignore 2021-11-30 22:31:12 -05:00
Nick Krichevsky 7246a8e9bc Initial commit 2021-11-30 22:05:22 -05:00