My solutions for Advent of Code 2024 written in TypeScript.
Notice: Following the AoC about page, solutions in this repository only published after the daily leaderboard is already full. Also no personal puzzle inputs are commited.
- Clone the repository
- Install dependencies:
npm install
- Build:
npm run build
The solutions to the puzzles for each day can be selected and executed separately.
Each solution requires an individual puzzle input. Copy your puzzle input to input.txt
before running a solution.
To get a list of all available puzzle solutions, execute the following command:
npm run advent
This will show you a list from which you can select a day using the arrow keys:
To execute a solution directly, use the following command:
npm run advent <day>
Where <day>
needs to be a valid and existing day, see Solutions
After executing the solution, either by selecting it from the list or by calling it directly, the results for all parts of the puzzle are displayed in the console:
Day | Command | Part 1 | Part 2 |
---|---|---|---|
Day 1: Historian Hysteria | npm run advent 1 |
57fb22f | f51986c |
Day 2: Red-Nosed Reports | npm run advent 2 |
7932831 | bb32ac1 |
Day 3: Mull It Over | npm run advent 3 |
f0bbb55 | b3dee49 |
Day 4: Ceres Search | npm run advent 4 |
3ea2a60 | d4f6841 |
Day 5: Print Queue | npm run advent 5 |
42db0d0 | 190f504 |
Day 6: Guard Gallivant | npm run advent 6 |
58a2f02 | |
Day 7: Bridge Repair | npm run advent 7 |
eeda1e2 | 14e6820 |