Commit graph

21 commits

Author SHA1 Message Date
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