What is Nostr?
jpages /
npub1mr0…k4s2
2023-12-25 03:00:41

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
Author Public Key
npub1mr0wam5le7yta87mshdg2jrflgv9t0fq6gl4gkvaejw54k6z78gq9ek4s2