Since there was some confusion with my solution us...
# advent-of-code
m
Since there was some confusion with my solution using expanded strings for part 2 with inserted commas, here's my solution: https://github.com/fabmax/aoc-2023/blob/2b0208b3cb289ad8eb9cc535d1a093f347ab1bf6/src/main/kotlin/day11/Day11.kt#L23 I basically do Manhattan distance as well but walk the path and whenever I come across a comma I add the expansion factor to the sum distance.