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