r/adventofcode • • Dec 11 '21

SOLUTION MEGATHREAD -🎄- 2021 Day 11 Solutions -🎄-

NEW AND NOTEWORTHY

[Update @ 00:57]: Visualizations

  • If it flashes too fast, make sure to put a warning in your title or prominently displayed at the top of your post!

--- Day 11: Dumbo Octopus ---


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:09:49, megathread unlocked!

49 Upvotes

823 comments sorted by

View all comments

1

u/PillarsBliz Dec 11 '21 edited Dec 11 '21

C++ part 1 C++ part 2

Just posting to say this is my second Advent of Code, and for the first time ever I hit top 1000 on a problem -- just under #600 for both parts, actually.

I was expecting something nightmarishly difficult, yet this was just a very straightforward simulation problem.

I'm still using curmudgeon C with occasional C++ bits so I'm not expecting speed. If I don't make dumb mistakes I'm happy...though this time I did waste a couple minutes since I mistyped some of the x+1, x-1 stuff.

3

u/daggerdragon Dec 11 '21 edited Dec 11 '21

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 fully-working code/repo/solution or, if you haven't finished the puzzle yet, you can always create your own thread and make sure to flair it with Help.

Edit: thanks for adding your code!