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

Slackbot

12/09/2023, 4:44 PM
This message was deleted.
l

Lidonis Calhau

12/09/2023, 4:51 PM
Part 1 should be fast.
Mine is 10ms on my input
s

Safi K

12/09/2023, 4:52 PM
Did you use any optimization method? I just stored them in a map and lookup for each value while ZZZ is not found,
l

Lidonis Calhau

12/09/2023, 4:53 PM
No it’s what I did too
e

ephemient

12/09/2023, 4:53 PM
if you are not getting a result quickly, perhaps you are not following the left/right instructions correctly
s

Safi K

12/09/2023, 4:54 PM
Oh, well then something is wrong in my code
I'll try to debug it.
j

Jonathan Kolberg

12/09/2023, 4:58 PM
Also check, that you parse negative numbers correctly, took me 30mins this morning to notice, I missed the -? in my regex
s

Safi K

12/09/2023, 4:59 PM
Thank you all. It turns out I was starting the first node from the first row, not from AAA, which was the problem.
e

ephemient

12/09/2023, 4:59 PM
Jonathan, do you mean day 9? no numbers in day 8 input
👍 1
j

Jonathan Kolberg

12/09/2023, 5:00 PM
@ephemient Oops, yeah I meant day 9, losing track of days/not seen the day 8 part
3 Views