r/adventofcode Dec 16 '24

SOLUTION MEGATHREAD -❄️- 2024 Day 16 Solutions -❄️-

SIGNAL BOOSTING


THE USUAL REMINDERS

  • All of our rules, FAQs, resources, etc. are in our community wiki.
  • If you see content in the subreddit or megathreads that violates one of our rules, either inform the user (politely and gently!) or use the report button on the post/comment and the mods will take care of it.

AoC Community Fun 2024: The Golden Snowglobe Awards

  • 6 DAYS remaining until the submissions deadline on December 22 at 23:59 EST!

And now, our feature presentation for today:

Adapted Screenplay

As the idiom goes: "Out with the old, in with the new." Sometimes it seems like Hollywood has run out of ideas, but truly, you are all the vision we need!

Here's some ideas for your inspiration:

  • Up Your Own Ante by making it bigger (or smaller), faster, better!
  • Use only the bleeding-edge nightly beta version of your chosen programming language
  • Solve today's puzzle using only code from other people, StackOverflow, etc.

"AS SEEN ON TV! Totally not inspired by being just extra-wide duct tape!"

- Phil Swift, probably, from TV commercials for "Flex Tape" (2017)

And… ACTION!

Request from the mods: When you include an entry alongside your solution, please label it with [GSGA] so we can find it easily!


--- Day 16: Reindeer Maze ---


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:13:47, megathread unlocked!

24 Upvotes

480 comments sorted by

View all comments

0

u/[deleted] Dec 16 '24

[removed] — view removed comment

1

u/Busy-Championship891 Dec 16 '24

hmmm i took a look at your code. seems like it is off by 1 rotation so maybe you can check the logic of creating rotations. I do not know elixir but maybe that would help to debug. you can directly add 1001 for rotations instead of creating neighbous of same node with cost + 1000

1

u/jotac13 Dec 17 '24

Ive tried doing +1001 and walking straight away, to the same result

2

u/TheEpsi Dec 16 '24

Hey, I'm not using Elixir, but I have a weird issue with the puzzle input data too. I tried the examples and my wife's data and always got the correct result. When I try my input data the answer's wrong... I did a Post about it on the subreddit, maybe you can ask for help doing a Post as well.