My Advent of Code 2024 solutions (TypeScript).
50 / 50
1 ★★
2 ★★
3 ★★
4 ★★
5 ★★
6 ★★
7 ★★
8 ★★
9 ★★
10 ★★
11 ★★
12 ★★
13 ★★
14 ★★
15 ★★
16 ★★
17 ★★
18 ★★
19 ★★
20 ★★
21 ★★
22 ★★
23 ★★
24 ★★
25 ★★
First install dependencies:
npm i
Next add input file(s).
Input files are expected to be inside the inputs/
directory at the root of the project,
with names following the pattern inputs/01.txt
, inputs/02.txt
, ... inputs/25.txt
.
With input files in place, build and run:
npm run build
node bin/aoc24.js
Solutions can also be imported and run directly:
import { day1part1 } from '@jimf/advent-of-code-2024';
const input = `
3 4
4 3
2 5
1 3
3 9
3 3
`.trim();
day1part1(input);
//=> 11
MIT