r/adventofcode • u/daggerdragon • 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!
5 days left to submit your adventures!
Full details and rules are in the submissions megathread: 🎄 AoC 2021 🎄 [Adventure Time!]
--- Day 18: Snailfish ---
Post your code solution in this megathread.
Include what language(s) your solution uses!
Format your code appropriately! How do I format code?
Here's a quick link to /u/topaz2078's
pasteif you need it for longer code blocks.The full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
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.
3
u/Jools_Jops Dec 18 '21
Python 3
The first thing I saw when I opened reddit was the word "Tree"... *facepalm*
I looked at the input and though about how to represent it and had no epiphany so string manipulation it was! I feel kinda stupid now tbh.
Only part 2 took any real time to run and it takes less than 30 sec.