Finally managed to finish Day 22. Had to learn som...
# advent-of-code
r
Finally managed to finish Day 22. Had to learn some new material to do it myself. It was quite an interesting experience. Some spoilers in the thread. https://github.com/Rtchaik/AoC2019/blob/master/src/advent2019/day22/solution22.kt
Actually, almost everything on this day is related to operations with modulo. And the main problem was that division works differently to other operations. It took me a while to understand this, google and learn this topic.
t
Nice work! I'm so lost on Part 2 and this is so nice and clean.
One small thing that might make things nicer to look at, Java defines
BigInteger.ZERO
and
BigInteger.ONE
.
r
Great! Thanks.