Commit Graph

69 Commits

Author SHA1 Message Date
5c030d5272 Implement 2024 day 14 part 1 in Terraform 2024-12-27 21:14:28 +01:00
d07bb9235b Implement 2024 day 13 in terraform 2024-12-27 21:08:47 +01:00
b23676bf04 Implement 2024 day 21 part 2
Invent a unit test for it too, because why not, it's Christmas
2024-12-26 16:43:15 +01:00
40632c8114 Implement 2024 day 21 part 1 2024-12-26 15:55:06 +01:00
073b576fd8 Implement 2024 day 25 in Terraform 2024-12-26 15:13:46 +01:00
f3a3e1fca3 More numpy for speed 2024-12-25 10:34:40 +01:00
4a479c1646 Implement 2024 day 25 2024-12-25 10:25:48 +01:00
b41571949e Fix problem by adding more lookback 2024-12-24 21:17:49 +01:00
e949ce9932 Sort of functional implementation of 2024 day 24 2024-12-24 20:56:12 +01:00
48824288b0 Implement 2024 day 23
Is using networkx cheating? I don't think so. I've already solved
max-clique before, so I know I can do it
2024-12-23 08:21:45 +01:00
9e552c9b6a More inlining 2024-12-23 08:00:10 +01:00
329cd4e471 More optimizations 2024-12-22 14:11:39 +01:00
321d78d850 More loops to numpy 2024-12-22 12:15:11 +01:00
230b4ae028 Implement 2024 day 22 2024-12-22 12:03:44 +01:00
be2244eca9 Inline module
Because this is Terraform, and it's the ultimate optimisation technique
2024-12-20 20:15:30 +01:00
395463dc4a Implement 2024 day 20 2024-12-20 09:46:53 +01:00
fdaadfe184 Implement day 19 part 1 in Terraform 2024-12-19 23:24:11 +01:00
dd07090056 Poor man's trie 2024-12-19 22:35:55 +01:00
891a5ea50c Inline function to avoid passing arg 2024-12-19 09:13:37 +01:00
d4aad95f55 Implement 2024 day 19 2024-12-19 09:05:55 +01:00
caa2c9b6cf Implement 2024 day 18 2024-12-18 09:14:39 +01:00
4a8b9f9109 Implement 2024 day 17 part 2 2024-12-17 22:17:12 +01:00
6c0a49a5f3 Implement 2024 day 17 part 1 2024-12-17 09:55:07 +01:00
17017e7ab4 Formatting? 2024-12-17 09:34:43 +01:00
b23f24c567 Implement 2024 day 16 part 2 2024-12-16 18:16:05 +01:00
f0556c6afe Implement 2024 day 16 part 1 2024-12-16 08:58:42 +01:00
da7ee96b93 Slihghtly simplify 2024-12-16 08:33:02 +01:00
e90ee40880 Implement 2024 day 15 2024-12-15 14:05:31 +01:00
98983f622c It looks nice, not what I expected 2024-12-14 09:18:36 +01:00
4a7305d7eb Implement 2024 day 14 2024-12-14 09:11:16 +01:00
c8ab67d145 Implement 2024 day 13 2024-12-13 08:36:20 +01:00
044c971d00 Implement 2024 day 12 2024-12-12 22:18:32 +01:00
8308580284 Actually run part 2 in Terraform, madness 2024-12-11 23:18:56 +01:00
612c4d19ef Implement efficient algorithm in TF 2024-12-11 22:33:42 +01:00
2beccdd0e6 day 11 part 1 in terraform 2024-12-11 18:53:06 +01:00
023807a701 Implement 2024 day 11 2024-12-11 08:51:32 +01:00
3e709cc863 Implement 2024 day 10 2024-12-10 09:38:31 +01:00
d49fc8e769 Do day 7 RTL
That does indeed cut down branching significantly
2024-12-09 22:30:52 +01:00
cb7aedc4ba Implement 2024 day 9 2024-12-09 18:14:49 +01:00
dcb0f4514d Restructure tests 2024-12-08 10:33:17 +01:00
dfee3d4e11 Implement 2024 day 8 2024-12-08 10:17:29 +01:00
2d49907692 Implement day 5 part 1 in terraform
I'm pretty sure part 2 is impossible
2024-12-07 12:45:41 +01:00
edb0767201 Optimize day 3
Avoid instantiating module and backtracking, instead use regex for
filtering. Much faster. Since we are not matching brackets, but rather
only care about the last instance, the limitations of regex don't apply.
2024-12-07 10:42:38 +01:00
c871a9ea24 Implement 2024 day 7 2024-12-07 10:35:58 +01:00
0c7c54b5c9 Implement 2024 day 6 2024-12-06 09:20:08 +01:00
e9a57701c9 Optimize day 4 enough to run 2024-12-05 22:52:57 +01:00
f7af07a631 Slightly better performance 2024-12-05 22:18:26 +01:00
ecfe5e9f20 Implement day 4 in Terraform 2024-12-05 22:14:35 +01:00
0967a3dfe3 Formatting 2024-12-05 19:36:09 +01:00
bbe3ba8644 Implement 2024 day 5 2024-12-05 08:46:40 +01:00