Skip to content

v4de/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advent-of-code

https://adventofcode.com

This repo is my attempt at solving the advent of code puzzle of 2024 to earn all the stars using typescript :)

Su Mo Te We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 1 2 3 4

How to contribute

Fork this repo and test using the following:

Tested with Node v22.11.0

Using ts-node via cli

npx ts-node /1/src/app.ts

or using transpile-only

npx ts-node-transpile-only src/app.ts

Using vscode launch.json

It is also possible to test using vscode after running npm install in the current Day's working directory and creating a .vscode/launch.json at the root of the project directory.

remember to change cwd to the day you want to test.

.vscode/launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Launch Program",
      "cwd": "${workspaceFolder}\\1",
      "console": "integratedTerminal",
      "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
      "args": ["./src/app.ts"],
    }
  ]
}

then npm install from within the directory

cd 1
npm install