Here are my solutions to the Advent of Code 2022 puzzles. The solutions are written in JavaScript using Node.js.
In this repository you can find my solutions for the puzzles. Each day's solution is located in its own directory.
In these directories you will find:
README.md
: the puzzle descriptioninput.txt
: my puzzle input; to use your own input text from the puzzle, you can copy/paste it in this fileindex.js
: my solutionindex.test.js
: tests for part 1 and part 2 of the puzzle, using the example in the description
You can use npm start <day>
to get the solutions for that day; e.g. npm start 01
to get the first day.