Solutions for the Advent of Code 2020 puzzles, written in Javascript.
Every day two new puzzles are released, but you need to solve the first to unlock the second. Each puzzle grants a star, so the objective is to get all 50 stars. My aim is to code efficient solutions and comment them so that they can be easily understood.
Thanks Eric Wastl for organising this event!
Every day has its own folder with the following files:
input.js
: the puzzles input, formatted in a suitable way to solve thempuzzle1-solution.js
: the solution to the first puzzlepuzzle2-solution.js
: the solution to the second puzzleREADME.md
: the explanation of each solution
To run any solution, you can use Node:
# Runs the solution of the first puzzle of Day 1
node day1/puzzle1-solution
Here's the list of all days, along with the stars obtained in each of them.
Day | Stars |
---|---|
Day 1 - Report Repair | ⭐️ ⭐️ |
Day 2 - Password Philosophy | ⭐️ ⭐️ |
Day 3 - Tobbogan Trajectory | ⭐️ ⭐️ |
Day 4 - Passport Processing | ⭐️ ⭐️ |
Day 5 - Binary Boarding | ⭐️ ⭐️ |
Day 6 - Custom Customs | ⭐️ ⭐️ |
Day 7 - Handy Haversacks | ⭐️ ⭐️ |
Day 8 - Handheld Halting | ⭐️ ⭐️ |
Day 9 - Encoding Error | ⭐️ ⭐️ |
Day 10 - Adapter Array | ⭐️ ⭐️ |
Day 11 - Seating System | ⭐️ ⭐️ |
Day 12 - Rain Risk | ⭐️ ⭐️ |
Day 13 - Shuttle Search | ⭐️ ⭐️ |
Day 14 - Docking Data | ⭐️ ⭐️ |
Day 15 - Rambunctious Recitation | ⭐️ ⭐️ |
Day 16 - Ticket Translation | ⭐️ ⭐️ |
Day 17 - Conway Cubes | ⭐️ ⭐️ |
Day 18 - Operation Order | ⭐️ ⭐️ |
Day 19 - Monster Messages | ⭐️ ⭐️ |
Day 20 - Jurassic Jigsaw | ⭐️ |
Day 21 - TBA | |
Day 22 - TBA | |
Day 23 - TBA | |
Day 24 - TBA | |
Day 25 - TBA |