for part 2 my code works for each example but not ...
# advent-of-code
k
for part 2 my code works for each example but not my data
p
You can come to same intersection several times. Are you sure you are not overriding value when coming second time?
k
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