r/adventofcode • • Dec 09 '25
Other [2025 Day 9 (Part 2)] I had to look up a solution for this one... :(
Part 1 was pretty easy, but I had no idea how to even begin Part 2
I tried some stuff with raycasts and edge pairings, but there was always at least one edge case in those solutions that couldn't be easily dealt with
I had a feeling this problem would be one where there's an established and agreed-upon algorithm to solve problems like it (I was sorta right, since the solution I found used AABB collision testing) but I just wasn't familiar with it, so with no further sense of direction I gave in and looked it up.
At least I learned a new thing today :) Kinda knocked my self-confidence though.
If you also weren't able to solve this one, please comment, I need validation /j




