This repository contains my solutions for Advent of Code 2024, implemented in TypeScript and run using Deno.
Make sure you have Deno installed.
# Verify installation
deno --version
.
βββ main.ts # Challenge runner
βββ src/
β βββ 1.ts # Solution for Day 1
β βββ 2.ts # Solution for Day 2
β βββ ... # Solutions for other days
β βββ utils.ts # Utility functions shared across challenges
β βββ input/
β β βββ 1.txt # Input for Day 1
β β βββ 2.txt # Input for Day 2
β β βββ ... # Inputs for other days
βββ deno.json # Deno configuration file
βββ README.md # Project documentation
You can run a specific day's challenge or all implemented challenges.
# Run a specific day
deno run --watch --allow-read --allow-import main.ts 5
# Run all implemented days
deno run --watch --allow-read --allow-import main.ts
# Test a specific day
deno test --allow-import src/15.ts
# Test all implemented days
deno test --allow-import
This project is licensed under the MIT License.