-
Notifications
You must be signed in to change notification settings - Fork 0
2021
Hi! I'm Eric Wastl. I make Advent of Code. I hope you like it! I also made Vanilla JS, PHP Sadness, and lots of other things. You can find me on Twitter and GitHub.
Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.
You don't need a computer science background to participate - just a little programming knowledge and some problem solving skills will get you pretty far. Nor do you need a fancy computer; every problem has a solution that completes in at most 15 seconds on ten-year-old hardware.
If you'd like to support Advent of Code, you can do so indirectly by helping to it with others, or directly via PayPal or Coinbase.
Advent of Code is a registered trademark in the United States.
If you get stuck, try your solution against the examples given in the puzzle; you should get the same answers. If not, re-read the description. Did you misunderstand something? Is your program doing something you don't expect? After the examples work, if your answer still isn't correct, build some test cases for which you can verify the answer by hand and see if those work with your program. Make sure you have the entire puzzle input. If you're still stuck, maybe ask a friend for help, or come back to the puzzle later. You can also ask for hints in the subreddit.
Why was this puzzle so easy / hard?
The difficulty and subject matter varies throughout each event.
Very generally, the puzzles get more difficult over time, but your specific skillset will make each puzzle significantly easier or harder for you than someone else.
Making puzzles is tricky.
Why do the puzzles unlock at midnight EST/UTC-5?
Because that's when I can consistently be available to make sure everything is working.
I also have a family, a day job, and even need sleep occasionally.
If you can't participate at midnight, that's not a problem; many people use private leaderboards to compete with people in their area.
How does authentication work?
Advent of Code uses OAuth to confirm your identity through other services.
When you log in, you only ever give your credentials to that service - never to Advent of Code.
Then, the service you use tells the Advent of Code servers that you're really you.
In general, this reveals no information about you beyond what is already public; here are examples from Reddit and GitHub.
Advent of Code will remember your unique ID, names, URL, and image from the service you use to authenticate.
I find the text on the site hard to read. Is there a high contrast mode?
There is a high contrast alternate stylesheet.
Firefox supports these by default (View -> Page Style -> High Contrast).
I have a puzzle idea! Can I send it to you?
Please don't.
Because of legal issues like copyright and attribution, I don't accept puzzle ideas, and I won't even read your email if it looks like one just in case I use parts of it by accident.
Can I stream my solution?
Please try to avoid giving away the solution while people are competing.
If a puzzle's global daily leaderboard isn't full yet and you're likely to get points, please wait to stream/post your solution until after that leaderboard is full.
If you are unlikely to get points or the daily leaderboard is already full for the puzzle you're working on, streaming is fine.
Puzzles, Code, & Design: Eric Wastl
Beta Testing:
- Tim Giannetti
- Ben Lucek
- JP Burke
- Aneurysm9
- Andrew Skalski
Community Managers: Danielle Lucek and Aneurysm9
Playing: You!
- Day 1: Sonar Sweep : Solution
- Day 2: Dive! : Solution
- Day 3: Binary Diagnostic : Solution
- Day 4: Giant Squid : Solution
- Day 5: Hydrothermal Venture : Solution
- Day 6: Lanternfish : Solution
- Day 7: The Treachery of Whales : Solution
- Day 8: Seven Segment Search : Solution
- Day 9: Smoke Basin : Solution
- Day 10: Syntax Scoring : Solution
- Day 11: Dumbo Octopus : Solution
- Day 12: Passage Pathing : Solution
- Day 13: Transparent Origami : Solution
- Day 14: Extended Polymerization : Solution
- Day 15: Chiton : Solution
- Day 16: Packet Decoder : Solution
- Day 17: Trick Shot : Solution
- Day 18: Snailfish : Solution
- Day 19: Beacon Scanner : Solution
- Day 20: Trench Map : Solution
- Day 21: Dirac Dice : Solution
- Day 22: Reactor Reboot : Solution
- Day 23: Amphipod : Solution
- Day 24: Arithmetic Logic Unit : Solution
- Day 25: Sea Cucumber : Solution
- Day 1: Sonar Sweep : ...carried into deeper water... (Does this premise seem fishy to you?)
- Day 2: Dive! : ...pilot this thing... (Tank, I need a pilot program for a B212 helicopter.)
- Day 3: Binary Diagnostic : ...odd creaking noises... (Turns out oceans are heavy.)
- Day 4: Giant Squid : ...let the giant squid win... (That's 'cuz a submarine don't pull things' antennas out of their sockets when they lose. Giant squid are known to do that.)
- Day 5: Hydrothermal Venture : ...lines of vents... (Maybe they're Bresenham vents.)
- Day 6: Lanternfish : ...each lanternfish creates a new lanternfish... (I heard you like lanternfish.)
- Day 7: The Treachery of Whales : ...don't burn fuel at a constant rate... (This appears to be due to the modial interaction of magneto-reluctance and capacitive duractance.)
- Day 8: Seven Segment Search : ...they must have been damaged... (Yes, just the four-digit seven-segment ones. Whole batch must have been faulty.)
- Day 9: Smoke Basin : ...settles like rain... (This was originally going to be a puzzle about watersheds, but we're already under water.)
- Day 10: Syntax Scoring : ...all of them... (Some days, that's just how it is.)
- Day 11: Dumbo Octopus : ...octopuses... (I know it's weird; I grew up saying 'octopi' too.)
- Day 12: Passage Pathing : ...submarine's subterranean subsystems subsisting suboptimally... (Sublime.)
- Day 13: Transparent Origami : Finish folding... (How can you fold it that many times? You tell me, I'm not the one folding it.)
- Day 14: Extended Polymerization : ...instructions... (HO HO -> OH)
- Day 15: Chiton : ...cannot move diagonally... (Can't go diagonal until we can repair the caterpillar unit. Could be the liquid helium or the superconductors.)
- Day 16: Packet Decoder : ...BITS... (Just be glad it wasn't sent using the BuoyancY Transmission Encoding System.)
- Day 17: Trick Shot : ...HI... (Maybe you need to turn the message 90 degrees counterclockwise?)
- Day 18: Snailfish : ...math... (Snailfish math is snailfish math!)
- Day 19: Beacon Scanner : ...big... (The deepest parts of the ocean are about as deep as the altitude of a normal commercial aircraft, roughly 11 kilometers or 36000 feet.)
- Day 20: Trench Map : ...enough... (Yeah, that's definitely the problem.)
- Day 21: Dirac Dice : ...challenges you to a nice game... (A STRANGE GAME.)
- Day 22: Reactor Reboot : ...fun... (Well, *I* think it's fun.)
- Day 23: Amphipod : ...says... (What? You didn't know amphipods can talk?)
- Day 24: Arithmetic Logic Unit : ...damage the ALU... (Maybe this is what happened to the last one.)
- Day 25: Sea Cucumber : ...You landed... (Thanks to the deep-sea marine biologist, who apparently works at the Biham-Middleton-Levine oceanic research institute.)
- Answer to Day 25: Sea Cucumber : ...highlighted... (Yep, just like that. There's at least one in the description for each day.)