Repository for storing solutions to Advent of Code, organized by year and day.
advent-of-code/
├── .gitignore
├── README.md
├── 2023/
│ └── day01/
│ ├── part1.js
│ ├── part2.js
│ └── input.js
└── 2024/
└── day01/
├── part1.js
├── part2.js
└── input.jsYYYY/→ Year directorydayXX/→ Day directorypart1.js,part2.js→ Solutionsinput.js→ Puzzle input as an ES module exporting the input value (ignored)
Run with Node.js from the repository root:
node 2024/day01/part1.js
node 2024/day01/part2.jsPuzzle inputs are not committed, following Advent of Code guidelines.
Each input file is an ES module named input.js that exports the puzzle data. For example:
export const input = `your input text here`;To run a solution:
- Download your personal input
- Place it in the corresponding
dayXX/directory asinput.js
No puzzles solved yet.