What is Nostr?
jpages /
npub1mr0…k4s2
2023-12-11 22:56:11

jpages on Nostr: Advent of Code - Day 11 Part 1 : 55:10 (rank 6631) Part 2 : 1h10:47 (rank 6001) ...

Advent of Code - Day 11

Part 1 : 55:10 (rank 6631)
Part 2 : 1h10:47 (rank 6001)

Today, I used the correct data structure (a buffer, each element representing a galaxy coordinates) from the beginning.

That made Part 2 easy, as I only needed to introduce an additional integer parameter for the universe expansion factor.

However, I submitted a wrong answer at my first attempt for Part 2. I forgot to convert distances to 64-bit integers, and this provoked an integer overflow bug.

#AdventOfCode
Author Public Key
npub1mr0wam5le7yta87mshdg2jrflgv9t0fq6gl4gkvaejw54k6z78gq9ek4s2