Make sure you have Node.js installed and run this command in the root of the repo:
npm install
To run a script for a day use the following command:
npx ts-node --esm day-X/part-Y.ts
NOTE: Replace
X
with the number of the day you want to run andY
with the number of the part you want to rune.g.
npx ts-node --esm day-5/part-2.ts
Some scripts have some extended logging available to help understand the solution, keep an eye out for a DEBUG_LOGGING
variable in each script file that you can set to true
to enable extra logs.
Some of the challenges have additional solutions written in rust that should be blazingly fast 🚀🔥 (emphasis on the should).
To run the rust version change into the day-X
directory and run cargo run
.