|
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 |
|
Chris Hodges
|
b3f648a01e
|
Grmpfl.
Change-Id: I50b8abdf506c7899dea213d0cf8ec79500ce795b
|
2023-12-14 17:51:00 +01:00 |
|
|
226e61a203
|
Day 14.
|
2023-12-14 07:19:50 +01:00 |
|
|
3b1410e2fd
|
No time for day 13.
|
2023-12-13 06:55:05 +01:00 |
|
|
9ececeeb43
|
Day 12 :-/
|
2023-12-12 20:34:54 +01:00 |
|
|
ee3629989b
|
Giving up on day 12.
|
2023-12-12 07:17:31 +01:00 |
|
|
834d170921
|
Day 11.
|
2023-12-11 06:32:51 +01:00 |
|
|
b98653f2b9
|
Slept in, didn't hurry to finish Day 10. Considering the solution elegant regarding the traversal of the pipes.
|
2023-12-10 11:31:09 +01:00 |
|
|
56fcbfe165
|
Better properties handling.
|
2023-12-09 11:47:09 +01:00 |
|
|
fb3a5ce5d2
|
Added overdue helper functions splitInts() and splitLongs()
|
2023-12-09 09:20:47 +01:00 |
|
|
837e5827f4
|
removed dead code.
|
2023-12-09 08:28:08 +01:00 |
|
|
3c4b32fc78
|
Found some math code in my hackerrank repository that might become useful.
|
2023-12-09 07:53:00 +01:00 |
|
|
4c922f356d
|
Day 8 revisited: Replaced manual prime factorization by new gcd and lcm toolset.
|
2023-12-09 06:51:10 +01:00 |
|
|
f026dfb6de
|
Day 9.
|
2023-12-09 06:23:49 +01:00 |
|
|
9d314599e4
|
Day 8.
|
2023-12-08 06:40:24 +01:00 |
|
|
ba3d677880
|
Day 7 :-(
|
2023-12-07 09:27:50 +01:00 |
|
|
3a6545c934
|
Day 6 :-(
|
2023-12-06 06:41:39 +01:00 |
|
Chris Hodges
|
c33d708760
|
Fixed day 5 :-/
Change-Id: I927bfc1e9e16be8a30f5a9b6d639fc92392db9a2
|
2023-12-05 13:22:20 +01:00 |
|
|
ac0c0015d3
|
Giving up on Day 5.
|
2023-12-05 08:13:37 +01:00 |
|
|
1aac27e384
|
Day 4: Lesson learned: Don't make bugs, use pen and paper first.
|
2023-12-04 07:17:47 +01:00 |
|
|
afcfed70d7
|
Reworked day 3, adding a generic class for 2D grids with some special functions for day 3. Modified template to avoid double evaluation.
|
2023-12-03 15:21:59 +01:00 |
|
|
077fbe6e21
|
Day 3 and I am beginning to hate this.
|
2023-12-03 07:12:48 +01:00 |
|
|
15d5e2ade8
|
Day 2: Revisited reg ex parsing, but it really turned out to be too complicated for me. Simplified part 1 a little.
|
2023-12-02 07:42:10 +01:00 |
|
|
db8acdd483
|
Day 2. Spent too much time on input parsing.
|
2023-12-02 06:29:27 +01:00 |
|
|
d7ac6a2506
|
Improved solution to day 1.
|
2023-12-01 19:06:02 +01:00 |
|
|
99a47fdf75
|
Day 1 of 2023.
|
2023-12-01 06:38:13 +01:00 |
|
|
52b1eed88f
|
Day 8 of 2022 (finally).
|
2023-11-29 18:05:26 +01:00 |
|
|
be51de621d
|
Day 7 of 2022.
|
2023-11-25 22:34:05 +01:00 |
|
|
7763c5a62d
|
Day 6 of 2022.
|
2023-11-25 18:05:09 +01:00 |
|
|
adbc09f996
|
Day 5 of 2022.
|
2023-11-25 15:10:28 +01:00 |
|