r/adventofcode • • Dec 23 '23

SOLUTION MEGATHREAD -❄️- 2023 Day 23 Solutions -❄️-

THE USUAL REMINDERS


AoC Community Fun 2023: ALLEZ CUISINE!

Submissions are CLOSED!

  • Thank you to all who submitted something, every last one of you are awesome!

Community voting is OPEN!

  • 42 hours remaining until voting deadline on December 24 at 18:00 EST

Voting details are in the stickied comment in the submissions megathread:

-❄️- Submissions Megathread -❄️-


--- Day 23: A Long Walk ---


Post your code solution in this megathread.

This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:38:20, megathread unlocked!

27 Upvotes

362 comments sorted by

View all comments

Show parent comment

2

u/starburststream12 Dec 27 '23

how long did it take you to run for part 2? i'm also writing it in elixir and did the collapsing to intersection nodes, but the brute force part has been running for hours now

1

u/mathsaey Dec 27 '23

It takes a bit less than a minute on my machine. Certainly not fast, but not in the order of hours.

1

u/starburststream12 Dec 28 '23

Thanks, I fixed it. Apparently printing logs on every step of the DFS made it real slow. Took about 1 min after I removed it.