Skip to content

My solutions for Advent of Code 2024 written in TypeScript.

Notifications You must be signed in to change notification settings

avolutions/advent-of-code-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024

My solutions for Advent of Code 2024 written in TypeScript.

Notice: Following the AoC about page, solutions in this repository only published after the daily leaderboard is already full. Also no personal puzzle inputs are commited.

Installation

  1. Clone the repository
  2. Install dependencies:

    npm install

  3. Build:

    npm run build

Usage

The solutions to the puzzles for each day can be selected and executed separately.

Input

Each solution requires an individual puzzle input. Copy your puzzle input to input.txt before running a solution.

Select from list

To get a list of all available puzzle solutions, execute the following command:

npm run advent

This will show you a list from which you can select a day using the arrow keys:

image

Run directly

To execute a solution directly, use the following command:

npm run advent <day>

Where <day> needs to be a valid and existing day, see Solutions

Results

After executing the solution, either by selecting it from the list or by calling it directly, the results for all parts of the puzzle are displayed in the console:

image

Solutions

Day Command Part 1 Part 2
Day 1: Historian Hysteria npm run advent 1 57fb22f f51986c
Day 2: Red-Nosed Reports npm run advent 2 7932831 bb32ac1
Day 3: Mull It Over npm run advent 3 f0bbb55 b3dee49
Day 4: Ceres Search npm run advent 4 3ea2a60 d4f6841
Day 5: Print Queue npm run advent 5 42db0d0 190f504
Day 6: Guard Gallivant npm run advent 6 58a2f02
Day 7: Bridge Repair npm run advent 7 eeda1e2 14e6820