Here's mine: https://github.com/jorispz/aoc-2019/blob/master/src/commonMain/kotlin/day12/p12.kt
Needed a small nudge for part 2. It was obvious we needed to look for cycles (the hints in the text were strong, and we have a few of these every year unfortunately), but it didn't occur to me to look the dimensions independently. The code is OK but nothing special.
👍 2
t
todd.ginsberg
12/12/2019, 9:48 PM
Nice work!
todd.ginsberg
12/12/2019, 9:48 PM
The
.sign
function is a perfect example of the thought that went into the standard library.