caf113ce3d
Rust Day 14 - Performance improvements
...
Use [usize; 2] instead of (usize, usize)
Use HashSet instead of HashMap
Use !.contains instead of .get(...).is_none()
Compute lowest_stone when Cave is created, instead of for every sand
2022-12-14 13:43:23 +01:00
53f9a710e0
Rust Day 14 - I know I skipped 13
2022-12-14 11:52:28 +01:00
2f1282652a
Rust Day 12
2022-12-13 13:19:10 +01:00
e7a06642aa
Rust Day 11
2022-12-12 16:15:55 +01:00
57216e6c0b
Add missing test values in Rust Day 8/9
2022-12-12 10:21:00 +01:00
2437fc0e6f
Revert "Rust Day 7 - Better cd /
" because it actually broke things?
...
This reverts commit ec9f1e92bc
.
2022-12-12 10:19:06 +01:00
252f9d9515
Rust Day 10
2022-12-12 10:17:32 +01:00
100a8c3a6a
Fix clippy warnings
2022-12-12 09:01:03 +01:00
7e9e3e63c3
Rust Day 9
2022-12-09 20:25:57 +01:00
a8cd0b0688
Rust Day 8
2022-12-09 18:51:41 +01:00
ec9f1e92bc
Rust Day 7 - Better cd /
2022-12-09 18:51:28 +01:00
a296f62b58
Rust Day 7
2022-12-07 09:55:05 +01:00
24b28937f9
Rust Day 6 - Another solution
2022-12-06 14:54:06 +01:00
24f05860a2
Rust Day 6 - Tidy up; Add tests for correctness
2022-12-06 14:16:21 +01:00
50afeb37d8
Rust Day 6 - Benchmarks from a bunch of different solutions
...
Possibly more to come
2022-12-06 12:31:54 +01:00
c785df0a3a
Rust Day 6
2022-12-06 08:59:06 +01:00
870d70001b
Rust Day 5 - Remove redundant clone
2022-12-05 13:14:50 +01:00
d2facf8cfa
Rust Day 5 - Awful, awful, horrible, evil parsing
2022-12-05 12:37:06 +01:00
47c420c630
Clean up more; Add tests for sample input
2022-12-04 12:44:06 +01:00
cef5587b56
Add tests for day 1-3
...
Also handle different line endings
2022-12-04 11:50:47 +01:00
80e9066b1d
Rust Day 4
...
Now with tests, very neat
2022-12-04 10:43:24 +01:00
d4643c00d2
Slightly clean up
2022-12-04 10:41:42 +01:00
29186c44c0
Rust Day 3
2022-12-04 10:41:22 +01:00
8ad6df2ab6
Rust Day 2 - Handle crlf line endings
2022-12-02 15:25:16 +01:00
747e69fbfb
Rust Day 2
2022-12-02 10:18:02 +01:00
19559cea15
Rust Day 1
2022-12-01 13:33:07 +01:00
14abcd622e
Rust template
2022-12-01 13:26:53 +01:00
13a623f55b
C Template before I remembered Rust exists
...
Base Commit
2022-12-01 13:26:52 +01:00