Skip to content

skarline/advent-of-code-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ„ Advent of Code 2024

This repository contains my solutions for Advent of Code 2024, implemented in TypeScript and run using Deno.

Getting Started

Prerequisites

Make sure you have Deno installed.

# Verify installation
deno --version

Project Structure

.
β”œβ”€β”€ 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

How to Run

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

Testing

# Test a specific day
deno test --allow-import src/15.ts

# Test all implemented days
deno test --allow-import

License

This project is licensed under the MIT License.

About

πŸŽ„ Advent of Code 2024 solutions in TypeScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published