Skip to content

WELL1NGTON/Advent-of-Code

Repository files navigation

Advent of Code

Doing some Advent of Code puzzles in different languages to remember or learn them.

Instructions

Download input

Download puzzle input and save it to input.txt in the challenge day directory.

Or use the command line with curl:

curl https://adventofcode.com/2023/day/1/input \
  --cookie "session=$SESSION_ID" \
  --output ./2023/day-01/input.txt

Execute script file in Visual Studio Code

Open the script file in Visual Studio Code, then open the Command Palette (default: Ctrl+Shift+P) and select Run build task (default: Ctrl+Shift+B), then select the task to run.

Run solution in C

gcc day-01.c -o day-01
./day-01

Run solution in Lua

lua day-01.lua

Run solution in C# (dotnet-script)

dotnet script day-01.csx

Run solution in Python

python day-01.py

Run solution in Rust

rustc day-01.rs -o day-01
./day-01

Run solution in Go

go run day-01.go

Run solution in JavaScript

node day-01.js