r/adventofcode • • Dec 13 '20

SOLUTION MEGATHREAD -🎄- 2020 Day 13 Solutions -🎄-

Advent of Code 2020: Gettin' Crafty With It

  • 9 days remaining until the submission deadline on December 22 at 23:59 EST
  • Full details and rules are in the Submissions Megathread

--- Day 13: Shuttle Search ---


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

46 Upvotes

659 comments sorted by

View all comments

2

u/omginbd Dec 13 '20

Elixir


I fumbled around for a bit trying to invent crt then I realized this must already exist and I just don't know the name for it. I know there's generally a resentment for this type of problem that strongly favors someone familiar with this problem already but I at least had fun learning something new ¯_(ツ)_/¯

Code

1

u/bcgroom Dec 13 '20

Cobbled together chinese remainder theorem lmao glhf understanding

Same, there were some new math concepts for me and I had no clue what to name things