Joris PZ
12/03/2019, 4:07 PMPosition
and Heading
classes from last year after some dusting off. My solution: https://github.com/jorispz/aoc-2019/blob/master/src/commonMain/kotlin/day3/p03.kt
I started using a fancy Sequence-based solution until I realized that I needed the whole history of visited points anyway, so dropped that and just went for creating a ListPosition per wire and find the crossing points as above.Kroppeb
12/03/2019, 6:49 PMscan
was actually one of them. Sadly I focused on some other functions first and therefor couldn't use it =/stkent
12/04/2019, 2:24 AM