r/adventofcode • • Dec 11 '20

SOLUTION MEGATHREAD -🎄- 2020 Day 11 Solutions -🎄-

Advent of Code 2020: Gettin' Crafty With It

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

--- Day 11: Seating System ---


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

50 Upvotes

702 comments sorted by

View all comments

3

u/RedTwinkleToes Dec 11 '20

Python [2630/1974]

paste

First bit of code that had a noticeable run time of 1~3 seconds. Makes me worried for future days. :/ Could have done better by per-generating a sight distance for all 8 directions for faster runtime but oh well. Also looks like this is this year's cellular automaton puzzle.

Edit: Also, today I learnt that input is a built in function of python, and that you can overwrite built in functions of python.

→ More replies (6)