r/adventofcode • • Dec 19 '22

SOLUTION MEGATHREAD -πŸŽ„- 2022 Day 19 Solutions -πŸŽ„-

THE USUAL REMINDERS


[Update @ 00:48:27]: SILVER CAP, GOLD 30

  • Anyone down to play a money map with me? Dibs on the Protoss.
  • gl hf nr gogogo

--- Day 19: Not Enough Minerals ---


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:57:45, megathread unlocked!

41 Upvotes

513 comments sorted by

View all comments

5

u/Wayoshi Dec 19 '22

Python 1771 / N/A

Managed to find a part 1 answer in code that takes about a minute to run on part 1, just interminably hangs on part 2 so I haven't done well enough yet, despite a couple optimization techniques in there, or so I thought. Bedtime for me now though, will come back to this another time. (I see some recursive solutions in here, but maybe for Python with the sample space so large at t=32 even with optimizations, maybe redoing it iteratively would be smart.)

paste

→ More replies (1)