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.