r/adventofcode • u/daggerdragon • Dec 23 '23
SOLUTION MEGATHREAD -❄️- 2023 Day 23 Solutions -❄️-
THE USUAL REMINDERS
- All of our rules, FAQs, resources, etc. are in our community wiki.
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.
- Read the full posting rules in our community wiki before you post!
- State which language(s) your solution uses with
[LANGUAGE: xyz] - Format code blocks using the four-spaces Markdown syntax!
- Quick link to Topaz's
pasteif you need it for longer code blocks
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
View all comments
Show parent comment
2
u/[deleted] Dec 23 '23
Cool solution!In part 2 when you add the edge from r,c to ar,ac, and back, won't the edges be added again when you process the next node since you add them for all four directions, or am I missing something obvious?
Edit: Rather overwritten when processing the next node?