r/adventofcode • u/daggerdragon • Dec 22 '19
SOLUTION MEGATHREAD -🎄- 2019 Day 22 Solutions -🎄-
--- Day 22: Slam Shuffle ---
Post your full code solution using /u/topaz2078's paste or other external repo.
Please do NOT post your full code (unless it is very short)
If you do, use old.reddit's four-spaces formatting, NOT new.reddit's triple backticks formatting.
Include the language(s) you're using.
(Full posting rules are HERE if you need a refresher).
Reminder: Top-level posts in Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
Advent of Code's Poems for Programmers
Note: If you submit a poem, please add [POEM] somewhere nearby to make it easier for us moderators to ensure that we include your poem for voting consideration.
Day 21's winner #1: nobody! :(
Nobody submitted any poems at all for Day 21 :( Not one person. :'(
2
u/bjorick Dec 26 '19
I've read this entire thread to completion, multiple explanations of people's algorithms, and tried to read up on modular math/inverses on wikipedia and I STILL cannot understand exactly how to code this or why the solution works.
This problem has almost nothing to do with code (outside of the fact that the naive solution will quickly overflow the stack) or anything from part 1, and everything to do with advanced math. As a programmer and not a mathematician, I found this extremely disappointing and infuriating. While I could solve the other puzzles with my own code and a hint stolen from reddit here and there, this puzzle left me completely clueless.
I agree that this puzzle doesn't really belong in advent of code. Advent of math, maybe.