My solutions for Advent of Code 2024 using TypeScript.
aoc-2024/
├── src/
│ ├── solutions/ # Daily solutions
│ ├── util/ # Helper functions
│ └── index.ts # Solution runner
├── inputs/ # Puzzle inputs
├── tests/ # Test files
└── scripts/ # Script files
- Install dependencies:
npm install
- Create a new solution file:
cp src/solutions/day01.ts src/solutions/day02.ts
- Add your puzzle input to
inputs/day02.txt
- Run today's solution:
npm run solve
- Run a specific day:
npm run solve 1
- Run tests:
npm test # Run all tests
npm run test:day 1 # Run tests for day 1
npm run test:watch 1 # Run tests for day 1 in watch mode
⭐ Total stars: 45/50
- Day 1
- Day 2
- Day 3
- Day 4
- Day 5
- Day 6
- Day 7
- Day 8
- Day 9
- Day 10
- Day 11
- Day 12
- Day 13
- Day 14
- Day 15
- Day 16
- Day 17
- Day 18
- Day 19
- Day 20
- [/] Day 21
- Day 22
- Day 23
- Day 24
- Day 25