This repository has my solutions for the Advent of Code.
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.
To run solutions:
npm start <year|all> <day|all>
npm run start 2021 1 # run day 1 of 2021
npm run start all # run all implemented days of all years
npm run start 2021 all # run all implemented days of 2021
npm run start all 1 # run the first day of all years
You can also generate new days from the command line. The folders and files will be created according to given arguments, if they don't already exist.
To generate a new day's folder, solution file and input file:
npm run create <year> <day>
npm run create 2021 8 # create template for day 8 of 2021
npm run create 3264 16 # create template for day 16 of 3264
SPOILERS: Below are my solutions to the puzzles that I have completed. If you haven't done them yet, the solutions may be spoiled for you. Look at the code at your own risk.
- โ 2021 (web) 26 stars
- Day 01: Sonar Sweep (web) โ โ
- Day 02: Dive! (web) โ โ
- Day 03: Binary Diagnostic (web) โ โ
- Day 04: Giant Squid (web) โ โ
- Day 05: Hydrothermal Venture (web) โ โ
- Day 06: Lanternfish (web) โ โ
- Day 07: The Treachery of Whales (web) โ โ
- Day 09: Smoke Basin (web) โ โ
- Day 10: Syntax Scoring (web) โ โ
- Day 11: Dumbo Octopus (web) โ โ
- Day 12: Passage Pathing (web) โ โ
- Day 13: Transparent Origami (web) โ โ
- Day 15: Chiton (web) โ โ