But here it is anyway: github.com/sufftea/aoc2...
But here it is anyway: github.com/sufftea/aoc2...
i almost went insane writing this
i almost went insane writing this
I used some modular arithmetic to find an equation that spits out solutions that work for the x axis, and then used binary search to try them out until I find one that also matches on y.
I used some modular arithmetic to find an equation that spits out solutions that work for the x axis, and then used binary search to try them out until I find one that also matches on y.
used a mixture of modular arithmetic and binary search.
used a mixture of modular arithmetic and binary search.