Commit graph

270 commits

Author SHA1 Message Date
Antoine Martin 9d81739f2b 2021: day14: fix stack overflow in part 1 2021-12-14 13:39:48 +01:00
Antoine Martin 218d9d5298 2021: day14: part 1 2021-12-14 13:35:35 +01:00
Antoine Martin 441e41c30c 2021: day12: bench 2021-12-13 14:56:05 +01:00
Antoine Martin 28b84ae865 2021: day12: part 2 2021-12-13 14:37:32 +01:00
Antoine Martin c439b3a265 2021: day12: part 1 2021-12-13 14:16:03 +01:00
Antoine Martin d0f3b941ce 2021: day13: bench 2021-12-13 11:59:08 +01:00
Antoine Martin b8e2bbf2f3 2021: day13: part 1 & 2 2021-12-13 11:58:29 +01:00
Antoine Martin d515ced9a0 2021: day09: fix neighbour iterator lifetime 2021-12-11 16:09:30 +01:00
Antoine Martin fc3d23397b 2021: day11: bench 2021-12-11 16:09:30 +01:00
Antoine Martin 1d6ed92b36 2021: day11: part 1 & 2 2021-12-11 16:09:30 +01:00
Antoine Martin 8ddde41f0c 2021: day10: bench 2021-12-10 14:39:49 +01:00
Antoine Martin 7ec783fc16 2021: day10: part 2 2021-12-10 14:39:49 +01:00
Antoine Martin 6c7b3d9cc6 2021: day10: part 1 2021-12-10 14:13:20 +01:00
Antoine Martin 4cf5c2c6b0 2021: day09: bench 2021-12-09 20:03:56 +01:00
Antoine Martin a30bbaa4e1 2021: day09: part 2 2021-12-09 20:03:48 +01:00
Antoine Martin 6eb8041362 2021: day09: part 1 2021-12-09 19:39:35 +01:00
Antoine Martin b5c4b72864 2021: day08: only store "hard" digits in mapping 2021-12-08 20:04:45 +01:00
Antoine Martin b5c79e9b1c 2021: day08: bench 2021-12-08 19:45:40 +01:00
Antoine Martin 65ddabcf00 2021: day08: part 2 2021-12-08 19:36:00 +01:00
Antoine Martin fe5ce3b1a6 2021: day08: part 1 2021-12-08 18:38:06 +01:00
Antoine Martin 64ee9796ba 2021: day07: use binary search for part 2 2021-12-07 15:51:21 +01:00
Antoine Martin f621e603f3 2021: day07: QuickSelect for median computation 2021-12-07 15:24:55 +01:00
Antoine Martin f7bbbf5cce 2021: day07: bench 2021-12-07 11:06:16 +01:00
Antoine Martin e56e70a6a3 2021: day07: part 2 2021-12-07 11:04:20 +01:00
Antoine Martin fa9827852d 2021: day07: part 1 2021-12-07 10:31:07 +01:00
Antoine Martin 56a5379a1b 2021: day05: use custom iterator 2021-12-06 16:49:39 +01:00
Antoine Martin 48f1a4ffeb aoc-get: fix variable setting bug 2021-12-06 16:02:45 +01:00
Antoine Martin 1973fead31 aoc-get: exit if arguments aren't valid 2021-12-06 16:01:16 +01:00
Antoine Martin 48f78825b8 aoc-get: default to current day in december 2021-12-06 15:39:40 +01:00
Antoine Martin 246d34cc1f aoc-get: include fish in build 2021-12-06 15:16:07 +01:00
Antoine Martin 21ebbbfcc4 cargo: adapt workspace wildcards 2021-12-06 15:08:23 +01:00
Antoine Martin 6bb234ee6a aoc-get: init helper script 2021-12-06 15:05:29 +01:00
Antoine Martin 7077559b3a 2021: day06: use a VecDeque for faster rotating 2021-12-06 13:37:22 +01:00
Antoine Martin fceda8ac1b 2021: day06: use rotate_left 2021-12-06 11:53:34 +01:00
Antoine Martin bb9265657b 2021: day06: refacto 2021-12-06 11:34:54 +01:00
Antoine Martin 7cffb7cdc6 2021: day06: bench 2021-12-06 11:25:08 +01:00
Antoine Martin 0e4c121ebd 2021: day06: tests 2021-12-06 11:24:54 +01:00
Antoine Martin bdc5a25d43 2021: day06: part 1 & 2 2021-12-06 11:05:34 +01:00
Antoine Martin 22c2591699 2021: day05: refacto 2021-12-05 17:25:28 +01:00
Antoine Martin 15796e4370 2021: day05: bench 2021-12-05 17:05:48 +01:00
Antoine Martin 1890268bd5 2021: day05: part 2 2021-12-05 17:01:53 +01:00
Antoine Martin 44afc3bbdd 2021: day05: part 1 2021-12-05 16:12:37 +01:00
Antoine Martin 9c29742b99 env: don't version .envrc, switch to nix-direnv 2021-12-04 17:54:29 +01:00
Antoine Martin d7a77e9283 fix various clippy lints from 1.57 2021-12-04 17:42:52 +01:00
Antoine Martin 239247a8c6 2018: day04: fix new unused warnings 2021-12-04 16:51:49 +01:00
Antoine Martin 691b404169 flake.lock: Update
Flake lock file changes:

• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/aaf6f89ca6a5d22ed822d93835ce438ee338936c' (2021-11-25)
  → 'github:oxalica/rust-overlay/4a918c124e43188e8a1d2492a731befe47effa71' (2021-12-04)
2021-12-04 16:41:00 +01:00
Antoine Martin a5adc0185e 2021: day03: use Vec::retain
~30% improvement in benchmark!
2021-12-04 15:45:57 +01:00
Antoine Martin 66fa27de0b 2021: day04: use Vec::retain 2021-12-04 15:38:33 +01:00
Antoine Martin 9209659a5a 2021: day04: remove useless Grid field 2021-12-04 15:22:35 +01:00
Antoine Martin 6dccc14046 2021: day04: better Iterator return type 2021-12-04 15:19:34 +01:00