030fd73bab
Add 2024 day 24 part 2
...
For part 2 we only use helper functions most of the calculations are
done manually.
2024-12-24 20:23:23 +00:00
0d5b713fcc
2024 day 24 part 1
2024-12-24 10:02:40 +00:00
7286ea2486
Another tidy up of 2024 day 23
...
Notice that part 2's recursive function works from the top level
onwards.
2024-12-23 14:55:24 +00:00
7f0977ce1d
2024 day 3 part 1 looks reasonable now.
2024-12-23 12:54:59 +00:00
2f30285fe7
2024 day 23 some further tidy-ups.
2024-12-23 12:45:43 +00:00
c97eb9d1b2
Some tidy-ups.
2024-12-23 12:15:23 +00:00
4e597eacad
2024 day 23 part 2
2024-12-23 12:04:10 +00:00
84bcf31a3d
2024 day 23 part 1
2024-12-23 09:09:15 +00:00
ec46327357
2024 day 22 tidy up.
2024-12-22 09:52:22 +00:00
337f67717b
2024 day 22
2024-12-22 09:44:28 +00:00
d7af35e706
Further tidy ups of 2024 day 21.
2024-12-21 16:31:09 +00:00
7debbf7acb
Code tidy up for 2024 day 21.
2024-12-21 16:18:45 +00:00
50420e84c4
Day 2024 parts 1 and 2 working.
2024-12-21 15:51:33 +00:00
5792a51888
Day 2024 day 1 works on example fails on input.
2024-12-21 09:46:50 +00:00
1bfbea8f60
Tidy up 2024 day 20.
2024-12-20 18:02:02 +00:00
c4be195490
2024 day 20 part 2.
2024-12-20 17:40:50 +00:00
1f8a8a8e53
Day 2024 part 1
2024-12-20 09:34:32 +00:00
defeaa6db3
Preserve use of begin/end in format.
2024-12-19 14:52:45 +00:00
2c8d0845b4
Merge a map/filter Fun.id with filter_map
2024-12-19 14:48:58 +00:00
aaa031e6c6
Move memoize to the Aoc library.
2024-12-19 11:53:59 +00:00
4f963e0f98
Tidy up 2024 day 19
2024-12-19 11:31:44 +00:00
4c9ae83184
2024 day 19 part 2.
2024-12-19 11:10:16 +00:00
33d7b34002
2024 day 19 part 1
2024-12-19 11:06:02 +00:00
4eb967fd88
Use binary search for 2024 day 18 part 2.
...
This dramatically speeds the search up (by ~100x).
2024-12-18 10:30:43 +00:00
fe94d8b371
Comment and tidy up 2024 day 18
2024-12-18 10:17:56 +00:00
dcdd2bab4d
Some 2024 day 18 tidy-ups.
2024-12-18 09:44:47 +00:00
530069a350
Day 2024 part 2
2024-12-18 09:27:50 +00:00
51f897dba8
2024 day 18 part 1
2024-12-18 09:12:49 +00:00
a8f3d96abf
2024 day 17 part 2.
2024-12-17 10:29:59 +00:00
80e923b074
2024 day 17 part 1
2024-12-17 08:58:31 +00:00
f271e93e63
Remove redundant line of code
2024-12-16 15:22:04 +00:00
f66c364090
Comment 2024 day 16.
2024-12-16 15:14:42 +00:00
4bc7815851
6x speed up on 24 day 16 part 2
...
We filter out already visited states when adding them to the work list.
We also don't sort the work list as we're already generating it in a
sorted (by cost) order.
2024-12-16 13:57:13 +00:00
bfd65557bf
2024 day 16 part 2
...
Quite slow takes ~11 mins to run.
2024-12-16 11:33:17 +00:00
06c006d5bd
2024 day 16 part 1
2024-12-16 09:33:28 +00:00
1ab16668f4
Tidy up 2024 day 15
2024-12-15 09:01:56 +00:00
73c86520bf
2024 day 15 part 2
2024-12-15 08:39:54 +00:00
70c53d5173
2024 day 15 part 1
2024-12-15 08:10:42 +00:00
499243c6eb
Tidy up 2024 day 14 code.
2024-12-14 09:00:00 +00:00
2afe323aec
2024 day 14 part 2
2024-12-14 08:48:36 +00:00
ccf4847c2b
2024 day 14 part 1
2024-12-14 08:16:22 +00:00
75f9ac6975
2024 day 13 part 2
2024-12-13 18:43:09 +00:00
8d7c14a707
2024 day 13 part 1
2024-12-13 09:16:31 +00:00
932b2c926c
Tidy up code for 2024 day 12.
...
This still has some mutable state.
2024-12-12 10:23:08 +00:00
7e0e6d3770
2024 day 12 part 2
2024-12-12 09:49:19 +00:00
46755cea34
2024 day 12 part 1.
2024-12-12 08:58:13 +00:00
c81de6e642
Tidy up 2024 day 11 code.
2024-12-11 15:45:27 +00:00
fcc4341237
Update to use Aoc.pow10 and Aoc.digits10.
2024-12-11 09:17:12 +00:00
2159a5fc5e
Performant solution to 2024 day 11.
...
We notice that we're repeating calculations at each step, so use a
map to ensure we do each stone ID once per step.
2024-12-11 09:16:57 +00:00
8bfe33fece
Add pow10, log10i and digits10 functions
...
These are used by a couple of solutions now.
2024-12-11 09:16:08 +00:00