In Deno!
Each solution is a module inside src/
that exports two functions: solvePart1
and solvePart2
. They have the type string => string | Promise<string>
.
To run a solution, pass the day and part numbers to the solve
script:
deno task solve 1 1
deno task solve --day=1 --part=1
You'll need a session token from adventofcode.com to check the solutions. This is obtained from the session
cookie after logging in.