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
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