https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
k

Kroppeb

12/03/2019, 5:28 AM
for part 2 my code works for each example but not my data
p

Pavlo Liapota

12/03/2019, 5:32 AM
You can come to same intersection several times. Are you sure you are not overriding value when coming second time?
k

Kroppeb

12/03/2019, 5:35 AM
No. whenever I was passing by an earlier wire of mine I was setting my current length to that value. I have no idea why I thought that was what I was supposed to do, cause even while reading the statement I was like "that's not how wires would behave irl ..."
Also kotlin worksheets just completly broke
4 Views