Commit Graph

86 Commits

Author SHA1 Message Date
9e7ac0057b Even more obfuscation. 2024-12-12 21:42:19 +01:00
90cf5a8335 Day 12 finally. I hate you. 2024-12-12 21:37:24 +01:00
9a8b316122 Day 12 Part 2 not correct. 2024-12-12 08:12:56 +01:00
778b38b3a4 Minor kotlinization :) 2024-12-11 07:56:01 +01:00
34c0c213c4 Day 11. 2024-12-11 07:17:31 +01:00
3d17ed29c7 Unused variable. 2024-12-10 18:19:32 +01:00
Chris Hodges
bc1888299b Okay okay, really last optimization on day 9, now beyond what the profiler can reliably measure. 2024-12-10 16:36:05 +01:00
Chris Hodges
4b84ce2803 Optimized day 9 for no reason, part 2 now runs in about 50ms for really_evil_input.txt. 2024-12-10 16:11:38 +01:00
abb0225d06 Day 10. 2024-12-10 06:26:53 +01:00
89b897b2c1 Day 9. 2024-12-09 06:56:54 +01:00
26661cbfd8 Minor fixes to readme and user agent. 2024-12-08 13:07:05 +01:00
8cdfdda1f4 Removed all puzzle descriptions, replaced by a link. Not deleting history though: People who want to get the descriptions will do so anyhow. 2024-12-08 12:55:07 +01:00
0876e5c92c Refactored CharGrid class to use a generator instead of two for-loops. Deprecated old API. 2024-12-08 08:05:40 +01:00
9d61ce1bc4 Day 8. Could have been faster if I think first. 2024-12-08 07:14:18 +01:00
15ce1ad06e Day 7 Part 2 best brute force optimization without using dynamic programming. 2024-12-07 07:20:08 +01:00
8d492486fb Day 7 Part 2 optimized to 666ms (instead of around 3000ms). 2024-12-07 07:13:32 +01:00
ea9f44a12c Day 7 (unoptimized) 2024-12-07 06:53:50 +01:00
Chris Hodges
d2487ed762 Day 6 part 2 :'-(
Change-Id: I04ba157f88233e3f57632f632c4a60267e486058
2024-12-06 12:31:43 +01:00
3cc10ea7c3 Day 6, can't seem to get part 2 working :-( 2024-12-06 07:41:33 +01:00
a14958b8a6 Day 5, total failure, mainly due to testInput containing extra lines without me noticing. Stopping this madness once and for all. 2024-12-05 07:24:35 +01:00
Chris Hodges
782d12c048 Very minor day 2 refinement. 2024-12-04 10:03:28 +01:00
4bf79c0e89 Added some utility functions to CharGrid. 2024-12-04 06:38:33 +01:00
77618b3534 Day 4. CharGrid class could need some improvements. 2024-12-04 06:20:45 +01:00
Chris Hodges
64ba775ca6 Bugfix for an edge case that wasn't in the input, gladly.
Change-Id: I7b1123e8f65d138dab777ea8383852f85402d59a
2024-12-03 11:20:38 +01:00
Chris Hodges
b770db22c6 Minor tidying.
Change-Id: I81f04b30668c9d4e081a21c941b30c5989ffcdb7
2024-12-03 10:57:11 +01:00
7695a005c9 Day 3, meh for having multiple lines of input and meh for having two different inputs and meh for being lazy. 2024-12-03 06:23:12 +01:00
79797d8ea2 Day 2, slept in :-( 2024-12-02 06:52:19 +01:00
8f879f456e 2024: Day 1 (yawn!) 2024-12-01 06:13:35 +01:00
6b27f3741d Was bored, so started to do 2015. 2023-12-28 20:01:40 +01:00
73164a0ee3 Unlike other people, I don't have a ready set of graph algorithms ready, so I tried a bit to implement Karger, before I went back and simply added -Kneato to my dot graph output and then the edges to cut became very clearly visible. I could have saved a couple of hours. 2023-12-25 08:10:42 +01:00
0acad0121c Day 24. This was a mad thing. I hate you all for using term solving tools under python. Thanks to the other kotlin guy who went the chinese remainder path and give a good amount of inspiration (strangely, the test input fails). I was thinking that some sort of modulo arithmetic could solve it, but it was too hard to figure out. What a waste of an otherwise nice xmas day. 2023-12-24 14:50:09 +01:00
6b904bb42c Minor optimization on speed for day 23. 2023-12-23 12:40:51 +01:00
12d2e88da1 Day 23. 2023-12-23 11:37:51 +01:00
Chris Hodges
bfee59402e Minor opt.
Change-Id: Id25e6987382144228afebe661d0b4bdd576b9d6d
2023-12-22 10:58:11 +01:00
Chris Hodges
946048f3f1 Day 22 Part 2.
Change-Id: I60222815834fd3180a842d3c0f1f70bc9ed2ed67
2023-12-22 10:28:32 +01:00
50a8574a10 Part 1 at least. 2023-12-22 07:36:39 +01:00
8f1e9e238e Oh no, no time! 2023-12-22 07:10:20 +01:00
Chris Hodges
1eca157417 Minor clarification.
Change-Id: I987576476869e24d727ecc3f941a1b627e96a417
2023-12-21 09:35:32 +01:00
Chris Hodges
db7f45670e Day 21.
Change-Id: Ia46e9ade247aa6e7f04c7af4310c35a5852bbc95
2023-12-21 09:33:42 +01:00
4d1948a068 Day 21 part 1, no definite clue how to solve part 2 right now. 2023-12-21 06:47:16 +01:00
Chris Hodges
158ed23e9e What a mess.
Change-Id: I6691ff4ca64b6a2ae6edc38c4e2105130403437a
2023-12-20 10:06:56 +01:00
04dc4d6ba9 Day 20 unfinished, going to work. 2023-12-20 07:04:40 +01:00
Chris Hodges
8115b1c8ae Solved Part 2.
Change-Id: I5c3cab0446cb4761f9f6b97cc111b132da168475
2023-12-19 15:28:31 +01:00
1f9f6a69ea Day 19 Part 1. Need to go to work. 2023-12-19 07:43:21 +01:00
e35a97b62d Day 18. I dunno why the formular needed patching though. 2023-12-18 06:59:55 +01:00
095bbd4bc7 Day 17. What a mess. 2023-12-17 13:17:45 +01:00
3a8a2d79a9 Minor update to Day 15 because I should have used a linked hashmap in the first place, if I had only read the instructions clearly enough. 2023-12-16 13:19:03 +01:00
6eb93c51a3 Day 16. 2023-12-16 12:07:22 +01:00
d1d022f208 AoC is, after all, a reading compo :-( 2023-12-15 06:41:40 +01:00
3586f49f91 Damn you, Day 13. 2023-12-14 21:58:42 +01:00