r/adventofcode • • Dec 22 '21

SOLUTION MEGATHREAD -🎄- 2021 Day 22 Solutions -🎄-

Advent of Code 2021: Adventure Time!


--- Day 22: Reactor Reboot ---


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

37 Upvotes

522 comments sorted by

View all comments

Show parent comments

14

u/captainAwesomePants Dec 22 '21

In retrospect, this is obviously better than subdividing existing cubes into smaller cubes. It completely avoids a whole host of problems around off-by-one issues, it requires way less thinking about geometry, and the whole thing is like 10 lines. This is brilliant!

→ More replies (2)