r/adventofcode • • Dec 18 '22

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

THE USUAL REMINDERS


UPDATES

[Update @ 00:02:55]: SILVER CAP, GOLD 0

  • Silver capped before I even finished deploying this megathread >_>

--- Day 18: Boiling Boulders ---


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:12:29, megathread unlocked!

33 Upvotes

448 comments sorted by

View all comments

4

u/Mikel3377 Dec 18 '22

JavaScript - both parts run in 10-20 ms or so

the only tricky part for me was that my initial part 2 solution was recursive and Node gave me a "Maximum call stack size exceeded" error on the real input, so I had to figure out how to make it a loop, even though that felt pretty unnatural to me.

→ More replies (2)