Jack Jackson
8770497049
Solution to 21-1
...
Phewf - this was a tough one! As I call out in the comments on 21.zig,
I had cracked _most_ of the shortcutting to this, but hadn't noticed
that choice of order-of-operations was not arbitrary - needed to notice
that doing a < before a ^ ends up more efficient than the other way
around, for instance.
I shudder to think what part 2 is going to be like...
For the record, my attempts at this took 1253 lines, over two files -
considering my total line count so far is 6233, that's over one-fifth.
Wild!
2025-01-28 22:56:28 -08:00
Jack Jackson
ba85344b3d
Partial solution to 21-1
...
Got the ability to generate a set of directional-pushes that lead to a
numerical input. Now we "just" need to do the same thing for
directional-to-directional, then plumb them together, then we're done.
Easy, right? :P
2025-01-27 23:14:56 -08:00
Jack Jackson
36abfed74c
Committing to save
...
Getting a `bus error` when running tests, which googling hasn't really
helped me to understand.
Ohhh, just realized - it's because some of those `[]const []const u8`s
_aren't_ initialized with the `allocator`, so we shouldn't be freeing
them. Ugh.
2025-01-23 23:41:38 -08:00
Jack Jackson
171a276de3
Refactor solutions to 20 to use common code
2025-01-23 21:16:24 -08:00
Jack Jackson
d4b5ba7279
Solutions to part 20
2025-01-23 21:13:47 -08:00
Jack Jackson
852515af6f
(Small!) partial solution to 20-1
2025-01-21 21:47:24 -08:00
Jack Jackson
d85d294c58
Generic implementation of Dijkstra
2025-01-21 18:54:53 -08:00
Jack Jackson
68c38385ff
Refactor to use 16-2 solution in 16-1
2025-01-20 13:33:10 -08:00
Jack Jackson
c80bb01c88
Solution to 19-2
2025-01-20 13:31:13 -08:00
Jack Jackson
f06c75a2e2
Solution 19-1
2025-01-20 13:02:20 -08:00
Jack Jackson
6a8d9325e0
Solution to 18-2
2025-01-20 12:09:16 -08:00
Jack Jackson
6914093f48
Solution to 18-1
2025-01-20 10:53:28 -08:00
Jack Jackson
0949fc75fd
Improvement thanks to Ziggit advice
2025-01-20 08:58:46 -08:00
Jack Jackson
70a4c8615f
Solution to 17-2
2025-01-19 18:11:06 -08:00
Jack Jackson
263c51c364
Solution to 17-1
2025-01-19 17:19:12 -08:00
Jack Jackson
4202f34395
Solution to 16-2
2025-01-17 23:00:52 -08:00
Jack Jackson
6e9d08011f
Solution to 16-1
2025-01-16 20:47:58 -08:00
Jack Jackson
3a425717af
Solutions to 14 and 15
2025-01-13 19:05:21 -08:00
Jack Jackson
956109235d
Solution to 13-2
2025-01-10 18:26:02 -08:00
Jack Jackson
e45052d14a
Solution for 12-1
2025-01-09 19:45:20 -08:00
Jack Jackson
c80041ba08
Solutions to 11
2025-01-09 18:00:06 -08:00
Jack Jackson
0ace5ca159
Finishing up on question 10-2
2024-12-31 17:05:22 -08:00
Jack Jackson
d8fcb209ab
Solution to 10-1
2024-12-31 16:58:01 -08:00
Jack Jackson
4fdbce7204
Solutions to 09
2024-12-27 23:55:59 -08:00
Jack Jackson
c2955cd03e
Solution for 08-02
2024-12-27 22:25:21 -08:00
Jack Jackson
43982a67a1
Solution for 08-01
2024-12-27 20:14:09 -08:00
Jack Jackson
bf704d831b
Solutions to day 7
2024-12-27 18:05:58 -08:00
Jack Jackson
472950016c
Solution to 5-2
2024-12-24 00:33:33 -08:00
Jack Jackson
658b63d795
Solution to 5-1
2024-12-23 22:55:22 -08:00
Jack Jackson
098bebd25e
Solutions to part 04
2024-12-23 19:41:44 -08:00
Jack Jackson
f8d9fcdb06
Solutions to 3-1 and 3-2
2024-12-21 00:09:41 -08:00
Jack Jackson
3a32b3e8ce
Solution to 2-2
2024-12-19 16:07:56 -08:00
Jack Jackson
84223d9b3b
Solution to 2-1
2024-12-19 15:11:25 -08:00
Jack Jackson
aa408ad75b
Solution to 1-2
2024-12-19 14:32:12 -08:00
Jack Jackson
09ff76600a
Factor-out parsing the input file
2024-12-01 22:49:30 -08:00
Jack Jackson
d751cada30
Add concatStrings function
2024-12-01 22:28:01 -08:00
Jack Jackson
d4cd8cc346
Factor-out getInputFile
2024-12-01 20:10:22 -08:00
Jack Jackson
b7e34b0dd9
First solution
2024-12-01 00:26:27 -08:00
Jack Jackson
9c4c467c73
Mention Ziglings
2024-11-30 20:52:38 -08:00
Jack Jackson
dc87a47329
Detail mirroring
2024-11-30 20:28:19 -08:00
Jack Jackson
35f61cb3d9
first commit
2024-11-30 20:25:02 -08:00