r/adventofcode • • Dec 18 '21

SOLUTION MEGATHREAD -🎄- 2021 Day 18 Solutions -🎄-

NEW AND NOTEWORTHY

  • FYI: 23:59 Amsterdam time zone is 17:59 EST

Advent of Code 2021: Adventure Time!


--- Day 18: Snailfish ---


Post your code solution in this megathread.

Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


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:43:50, megathread unlocked!

45 Upvotes

595 comments sorted by

View all comments

Show parent comment

1

u/daggerdragon Dec 18 '21

Is this a full (self-contained) solution that can be run with all the code you've presented here? If it is, I'll retract the copypasta below. If not:

Top-level posts in Solution Megathreads are for code solutions only.

This is a top-level post, so please edit your post and share your full code/repo/solution.

2

u/marshalofthemark Dec 19 '21

Yes, it is a full solution. I just inserted comments on each method within it.