Join Slack
Powered by
Since there was some confusion with my solution us...
# advent-of-code
m
Max Thiele
12/11/2023, 6:41 PM
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.
3
Views
Open in Slack
Previous
Next