Advent of Code 2023 | Day 8

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I checked out the same code you did then went to reddit. Using lcm on the shortest distances happens to work for the input but the question as stated is much more general and imvolves fhe chinese remainder theorem. Oh well.

RanLottem