jpages on Nostr: Advent of Code - Day 24 Part 1 : 6:36:24 (Rank 6581) Part 2 : 20:23:38 (Rank 6038) ...
Advent of Code - Day 24
Part 1 : 6:36:24 (Rank 6581)
Part 2 : 20:23:38 (Rank 6038)
This one was the most complex, and the most interesting.
In Part 1, I submitted a wrong answer and had to use BigInt to get the star. I also defined a class for rational numbers, in order to work with exact values.
In Part2, I used space geometry, with plane equations, intersections of planes and lines. I ended in finding the zero of a rational function with the help of a binary search algorithm.
#AdventOfCode
Published at
2023-12-25 03:00:41Event JSON
{
"id": "7442e759ce48eb8d251ae8798f12b49f346d2b386d00eb92db8753ade4bfa8c8",
"pubkey": "d8deeeee9fcf88be9fdb85da854869fa1855bd20d23f54599dcc9d4adb42f1d0",
"created_at": 1703473241,
"kind": 1,
"tags": [
[
"t",
"adventofcode"
]
],
"content": "Advent of Code - Day 24 \n\nPart 1 : 6:36:24 (Rank 6581)\nPart 2 : 20:23:38 (Rank 6038)\n\nThis one was the most complex, and the most interesting.\n\nIn Part 1, I submitted a wrong answer and had to use BigInt to get the star. I also defined a class for rational numbers, in order to work with exact values.\n\nIn Part2, I used space geometry, with plane equations, intersections of planes and lines. I ended in finding the zero of a rational function with the help of a binary search algorithm.\n\n#AdventOfCode",
"sig": "f4cb11a85a52ce9a31259dbbeb2513d64d0298be0d7ccc4f3b6accdf58a949fedb8b85f26983d6b09ecdbe10d492e47b7676b15b3f6390339255eaf4def5f696"
}