Commit graph

84 commits

Author SHA1 Message Date
fda311a7ee 2020: day20: part 1 2020-12-25 09:21:17 +01:00
0dbae9bffb 2020: day24: part 2 2020-12-24 15:43:37 +01:00
3ebbba3953 2020: day24: part 1 2020-12-24 15:43:37 +01:00
d998cb02aa 2020: day23: use rotate_left from VecDeque 2020-12-24 02:10:25 +01:00
022ca7daab 2020: day23: refacto cup access 2020-12-24 02:10:25 +01:00
e341008746 2020: day23: part 2 2020-12-24 01:19:23 +01:00
9888140072 2020: day23: part 1 2020-12-24 01:19:23 +01:00
002f1a2b04 2020: day22: use Hasher for part 2 2020-12-22 16:05:50 +01:00
2ddd6b2bfc 2020: day22: optimize part 2
Use the score of the two decks in the set, instead of copying and
storing copies of both decks.
2020-12-22 16:05:50 +01:00
17bf26ea14 2020: day22: part 2 2020-12-22 14:41:40 +01:00
fe1f56bd7d 2020: day22: part 1 2020-12-22 14:41:40 +01:00
fbd7ae5be2 2020: day21: part 2 2020-12-21 19:27:20 +01:00
33fbe9ce5a 2020: day21: part 1 2020-12-21 19:27:20 +01:00
c0b388dfa0 2020: day19: part 2 2020-12-20 21:05:29 +01:00
fb9a7e3fc9 2020: day19: part 1 2020-12-20 21:05:29 +01:00
b0d3b805a1 2020: day18: bench 2020-12-18 16:06:21 +01:00
e7dda32c74 2020: day18: part 2 2020-12-18 15:51:59 +01:00
426ea00636 2020: day18: part 1 2020-12-18 15:22:42 +01:00
44c1178c72 2020: day17: part 2 2020-12-17 14:51:13 +01:00
e18b6edf80 2020: day17: part 1 2020-12-17 14:51:13 +01:00
8236dbc0c2 enable some additional clippy lints everywhere 2020-12-17 01:59:01 +01:00
e25bc47f8f fix some pedantic clippy lints that make sense
- clippy::redundant-closure-for-method-calls
- clippy::explicit-iter-loop
2020-12-17 01:59:01 +01:00
f1c9f5b228 2020: fix clippy tests warnings 2020-12-17 01:41:13 +01:00
a20557a2e3 2020: day16: part 2 2020-12-17 01:41:08 +01:00
cdc8f62269 2020: day16: part 1 2020-12-16 09:28:59 +01:00
8d11c817f3 bench: split to separate package
Unfortunately cargo doesn't allow optional dev dependencies (see
rust-lang/cargo#1596) so this is the workaround.

Previously, running `cargo test` triggered the build of all dev
dependencies, including criterion, which in turn pulls in a lot of
stuff. Running tests should be faster, hence this change.
2020-12-15 12:16:33 +01:00
ce37c1ee6f 2020: day11: ignore some long running tests 2020-12-15 10:53:30 +01:00
ea05aca51c 2020: day15: part 2 2020-12-15 10:48:22 +01:00
61125c42a1 2020: day15: part 1 2020-12-15 09:56:43 +01:00
d91165207f 2020: switch to anyhow 2020-12-14 20:35:10 +01:00
862d3d4ef0 2020: day14: add bench 2020-12-14 14:58:19 +01:00
18ddbd1310 2020: day14: cleanup and comments 2020-12-14 14:11:08 +01:00
8017827edc 2020: day14: part 2 2020-12-14 14:02:04 +01:00
b0c1b83c19 2020: day14: refacto to prepare part 2 2020-12-14 13:05:50 +01:00
514a93213c 2020: day14: part 1 2020-12-14 11:04:57 +01:00
f9e1306881 2020: introduce anyhow 2020-12-14 09:52:13 +01:00
d457461d2f 2020: day13: refacto / more tests 2020-12-13 17:47:58 +01:00
4c928e06ac 2020: day13: part 2 2020-12-13 17:28:29 +01:00
39d7098f36 2020: day13: part 1 2020-12-13 15:22:23 +01:00
bae2c9cb2c 2020: day12: factorize quadrant computation 2020-12-12 19:07:42 +01:00
8d34969eaa 2020: day12: refacto moving towards waypoint 2020-12-12 17:35:59 +01:00
fb981e8103 2020: day12: use i64 everwhere 2020-12-12 17:06:08 +01:00
f85bea7bb4 2020: day12: refacto coordinates system 2020-12-12 17:01:58 +01:00
1f0eeb3b04 2020: day12: impl direction rotation in direction 2020-12-12 16:33:33 +01:00
442f4621fb 2020: day12: refacto turn directions 2020-12-12 16:32:20 +01:00
e19ca07c6b 2020: day12: part 2 2020-12-12 15:39:09 +01:00
1be8717564 2020: day12: refacto part 1 directions iterator 2020-12-12 14:41:46 +01:00
fa879c367c 2020: day12: part 1 2020-12-12 14:06:03 +01:00
5566f9f6a7 2020: day11: part 2 2020-12-11 15:09:10 +01:00
4f98921fd2 2020: day11: part 1 2020-12-11 14:38:30 +01:00