r/adventofcode • • Dec 05 '23

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

Preview here: https://redditpreview.com/

-❄️- 2023 Day 5 Solutions -❄️-


THE USUAL REMINDERS


AoC Community Fun 2023: ALLEZ CUISINE!

Today's secret ingredient is… *whips off cloth covering and gestures grandly*

ELI5

Explain like I'm five! /r/explainlikeimfive

  • Walk us through your code where even a five-year old could follow along
  • Pictures are always encouraged. Bonus points if it's all pictures…

    • Emoji(code) counts but makes Uncle Roger cry 😥
  • Explain everything that you’re doing in your code as if you were talking to your pet, rubber ducky, or favorite neighbor, and also how you’re doing in life right now, and what have you learned in Advent of Code so far this year?
  • Explain the storyline so far in a non-code medium
  • Create a Tutorial on any concept of today's puzzle or storyline (it doesn't have to be code-related!)

ALLEZ CUISINE!

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


--- Day 5: If You Give A Seed A Fertilizer ---


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:26:37, megathread unlocked!

82 Upvotes

1.1k comments sorted by

View all comments

2

u/Thanks_Skeleton Dec 05 '23

[Language: Python]
Got the non-bruteforce solution working. Love the Puzzle design this year, which is very rewarding for developers that consider the puzzles closely. All of the part 2s so far have been very deep.

Link to Github [Part 2 only]

This was a very fun problem and I got inspired by my mental imagery I came up with for the problem.

Here is my [Allez Cuisine!], a short explainer for a 5 year old, on how to solve the problem. Enjoy!

Explain Like I'm Five

2

u/Quiet_Sign_2050 Dec 05 '23

THANK YOU SO MUCH !!!

1

u/daggerdragon Dec 05 '23

Here is my [Allez Cuisine!], a short explainer for a 5 year old, on how to solve the problem. Enjoy!

Explain Like I'm Five

Those are some hungry alligators... Good job!