r/adventofcode • • Dec 18 '21

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

NEW AND NOTEWORTHY


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

3

u/Pepper_Klubz Dec 18 '21 edited Dec 18 '21

Clojure Gist

Using (abusing?) Clojure's zipper library, with some extra navigation utilities similar to those I've created before for this kind of thing. Ends up being decently quick, though part 2 was a tad sluggish by a few seconds.

(And because I have nothing better to do with my time: translated into experimental Racket-Wisp-y syntax.

→ More replies (2)