These are my solutions to the (ongoing) 2021 Advent of Code challenge.
- Install NodeJS 16 or later (if unsure, select the LTS version here).
- Clone this repository to a folder.
- Open a terminal / command prompt and run
npm install
.
- Through the command line:
- Run all solutions:
npm run all
. - Run a specific day:
npm run dayD
where D is a day number starting from 1. - Run a specific part:
npm run dayD:partP
where D is a day number and P is 1 or 2. - Run a challenge:
npm run dayD:challenge:C
where D is a day number and C is a challenge number.
- Run all solutions:
- Through WebStorm IDE:
- Select the desired day and part from the "run" menu at the top right, then press the green "play" button.
Day | Name | Notes | Part 1 | Part 2 |
---|---|---|---|---|
1 | Sonar Sweep | Notes | Part 1 | Part 2 |
2 | Dive! | Notes | Part 1 | Part 2 |
3 | Binary Diagnostic | Notes | Part 1 | Part 2 |
4 | Giant Squid | Notes | Part 1 | Part 2 |
5 | Hydrothermal Venture | Notes | Part 1 | Part 2 |
6 | Lanternfish | Notes | Part 1 | Part 2 |
7 | The Treachery of Whales | Notes | Part 1 | Part 2 |
8 | Seven Segment Search | Notes | Part 1 | Part 2 |
9 | Smoke Basin | Notes | Part 1 | Part 2 |
10 | Syntax Scoring | Notes | Part 1 | Part 2 |
11 | Dumbo Octopus | Notes | Part 1 | Part 2 |
12 | Passage Pathing | Notes | Part 1 | Part 2 |
13 | Transparent Origami | Notes | Part 1 | Part 2 |
14 | Extended Polymerization | Notes | Part 1 | Part 2 |
15 | Chiton | Notes | Part 1 | Part 2 |
16 | Packet Decoder | Notes | Part 1 | Part 2 |
Challenge | Day | Part | Level | Notes | Solution |
---|---|---|---|---|---|
AOC 2021 Big Inputs (Big Boys) | 4 | * | 900-15 | Notes | Solution |
AOC 2021 Big Inputs (Big Boys) | 4 | * | 3600-30 | Notes | Solution |
AOC 2021 Big Inputs (Big Boys) | 5 | * | 20000-6400 | Notes | Solution |
AOC 2021 Big Inputs (Big Boys) | 5 | * | 50000-10000 | Notes | Solution |
AOC 2021 Big Inputs (Big Boys) | 6 | 2 | 9999999 | Notes | Solution |