Commit graph

149 commits

Author SHA1 Message Date
be02406c0f 2022 day4/rust: add solution 2022-12-04 09:59:17 +01:00
3e27ce8334 2022 day4: add data 2022-12-04 09:58:53 +01:00
d13125c4ad 2022 day3/rust: use bitwise arithmetic 2022-12-03 06:49:44 +01:00
c4268a0093 2022 day3/rust: cleanup 2022-12-03 06:49:24 +01:00
5ad4f56771 2022 day3/rust: add solution 2022-12-03 06:17:06 +01:00
f2f3697152 2022 day3: add data 2022-12-03 06:16:46 +01:00
e7f1e50aa6 2022 day2/rust: cleanup 2022-12-02 07:45:10 +01:00
56eb362c3d 2022 day2/rust: add solution 2022-12-02 07:36:35 +01:00
e904ed4d34 2022 day2: add data 2022-12-02 07:36:07 +01:00
bd13011a52 2022 day1/rust: avoid unnecessary allocations 2022-12-01 20:41:22 +01:00
8a192ddc42 test.sh: fix scoping 2022-12-01 19:24:06 +01:00
0ce9b79c20 test.sh: make shellcheck happy 2022-12-01 19:24:06 +01:00
bb0fbc0f8f test.sh: run all years 2022-12-01 19:24:06 +01:00
e271b0d585 2022 day1/rust: add solution 2022-12-01 19:24:06 +01:00
4be136b1a9 2022 day1: add data 2022-12-01 19:24:06 +01:00
cb3138f05c cargo update 2022-12-01 19:24:06 +01:00
8911a00d0b Add cargo workspace configuration 2022-12-01 19:24:06 +01:00
7aa3a53570 Rename rust crates 2022-12-01 19:24:06 +01:00
b0821bc945 2021 day13/rust: add solution 2022-04-10 16:09:05 +02:00
3d52da6074 2021 day13: add data 2022-04-10 16:08:28 +02:00
5a8d17a4e7 2021 day16/rust: make generic on error type 2022-01-23 20:02:10 +01:00
8e29118629 2021 day16/rust: fix assertion in bit-slicing implementation 2022-01-23 19:15:43 +01:00
e3c6a8f29c 2021 day22/rust: add solution 2022-01-23 17:50:55 +01:00
e5ae9b546a 2021 day22: add data 2022-01-23 17:50:46 +01:00
2f9adec8ff 2021 day12/rust: fix solution 2022-01-17 17:47:06 +01:00
0220f88e27 2021 day16/rust: clean up 2021-12-16 20:36:23 +01:00
f24e06da7d 2021 day16/rust: add solution 2021-12-16 18:48:50 +01:00
a771b98489 2021 day16: add data 2021-12-16 18:36:17 +01:00
f41e7a76ea 2021 day12/rust: add simple solution 2021-12-16 11:24:20 +01:00
acb52282b6 2021 day12: add data 2021-12-16 11:23:28 +01:00
37293ab29e 2021 day14/rust: add solution 2021-12-15 19:54:39 +01:00
7828e5a9d2 2021 day14: add data 2021-12-15 19:39:37 +01:00
f82eaa9490 2021 day10/python: add solution 2021-12-10 06:32:54 +01:00
0b617a70d0 2021 day10: add data 2021-12-10 06:32:29 +01:00
daec76d3d4 2021 day8/rust: speed up v3 to unsafe levels, remove v4 2021-12-09 21:39:13 +01:00
07a1391030 2021 day8/rust: make v4 function unsafe 2021-12-09 21:28:01 +01:00
591cde8631 2021 day8/rust: add test 2021-12-09 21:28:01 +01:00
11907cf8b5 2021 day8/rust: prettify calculation of output number
Now that `digits` is a fixed-size array, both methods get unrolled the
same and there is no performance difference.
2021-12-09 21:28:01 +01:00
edd8bdfa71 2021 day8/rust: only trim start of output digits 2021-12-09 21:28:01 +01:00
92aba2db95 2021 day8/rust: use ArrayVec
This avoids an allocation and, more importantly, turns `digits` into a
fixed size array, allowing the final calculations to be unrolled
completely.
2021-12-09 21:28:01 +01:00
a231883ea7 2021 day9/python: add cleaner solution 2021-12-09 21:28:01 +01:00
8775b26fe6 2021 day9/python: add dirty solution 2021-12-09 21:28:01 +01:00
b259572265 2021 day9: add data 2021-12-09 21:28:01 +01:00
891e9861ef 2021 day8/rust: add benchmarks 2021-12-09 21:28:01 +01:00
aa464884fe 2021 day8/rust: add solutions 2021-12-09 21:27:22 +01:00
6b9ff21a5a 2021 day8/python: add fast solution 2021-12-08 17:14:37 +01:00
66c78818fc 2021 day8/python: add brute force solution 2021-12-08 10:19:51 +01:00
3099e1e256 2021 day8: add data 2021-12-08 10:18:20 +01:00
96fe64f71f 2021 day7/python: add faster solution 2021-12-07 21:58:59 +01:00
4ea70f38ea 2021 day7/python: prettify 2021-12-07 20:03:46 +01:00