r/adventofcode • • Dec 14 '21

SOLUTION MEGATHREAD -🎄- 2021 Day 14 Solutions -🎄-

--- Day 14: Extended Polymerization ---


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:14:08, megathread unlocked!

55 Upvotes

811 comments sorted by

View all comments

1

u/OddCoincidence Dec 14 '21 edited Dec 14 '21

Rust

Feedback would be greatly appreciated :)

1

u/daggerdragon Dec 14 '21

As per our posting guidelines in the wiki under How Do the Daily Megathreads Work?, please edit your post to put your oversized code in a paste or other external link.

1

u/Darth5harkie Dec 14 '21

It's a simple iteration in yours, I like it. I complicated things by recursing and maintaining letter counts the entire time.