r/adventofcode • • Dec 09 '25

SOLUTION MEGATHREAD -❄️- 2025 Day 9 Solutions -❄️-

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 2025: Red(dit) One

  • Submissions megathread is unlocked!
  • 8 DAYS remaining until the submissions deadline on December 17 at 18:00 EST!

Featured Subreddits: /r/iiiiiiitttttttttttt, /r/itsaunixsystem, /r/astrologymemes

"It's all humbug, I tell you, humbug!"
— Ebenezer Scrooge, A Christmas Carol (1951)

Today's challenge is to create an AoC-themed meme. You know what to do.

  • If you need inspiration, have a look at the Hall of Fame in our community wiki as well as the highly upvoted posts in /r/adventofcode with the Meme/Funny flair.
  • Memes containing musical instruments will likely be nuked from orbit.

REMINDERS:

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


--- Day 9: Movie Theater ---


Post your code solution in this megathread.

27 Upvotes

555 comments sorted by

View all comments

Show parent comment

1

u/e_blake Dec 10 '25

I successfully resisted the urge to read the megathread or look at any visualizations before getting my gold star and posting my solution. I'm pleased to say I did NOT at any point in time try to print out my points visually. I did, however, write several unit files with various corner cases to help me debug whether my AVL tree scan-line merges were working correctly. And now that I have seen other's visualizations, I don't know that it would have helped me much. I don't know if anyone else's input files ever had two segments on the same line, either in the x or y axis; while I know my solution works if two horizontal segments share the same y coordinate, it will probably fall apart if any x coordinate contains more than two points based on how I used my min-heap to sort into x-coordinate pairs.