These are my TypeScript solutions for the Advent of Code challenges. This is not supposed to be a guide or a reference, but rather a place to store my solutions and track my progress.
year/day/part
structure is used
For simple problems:
2023/1/input.txt
- input for the 1st day challenge of 2023 year2023/1/1.spec.ts
- solution for the 1st part of the 1st day challenge of 2023 year2023/1/2.spec.ts
- solution for the 2nd part of the 1st day challenge of 2023 year- ...
For more challenging problems (for example, for the 9th day challenge of 2023 year):
2023/9/9.input.txt
- input for the challenge2023/9/1.statement.txt
- statement for the 1st part of the challenge; useful to provide context for co-pilot2023/9/1.code.ts
- solution for the 1st part of the challenge2023/9/1.spec.ts
- tests for the 1st part of the challenge2023/9/1.ts
- standalone script to solve the 1st part of the challenge; Useful for long-running solutions and debugging
git clone https://github.com/Maxim-Mazurok/advent-of-code
- (optional)
nvm i
- or use any other node version manager of choice npm i
npm start
To run a standalone script, use:
npx -y tsx 2023/9/1.ts