Solutions are organized by year, demonstrating evolution in my problem-solving approach.
The active year's solutions (2025) are built in JavaScript (Node.js) using a modular runner script.
- Primary Language: JavaScript (Node.js)
- Runner Script:
index.js(Handles dynamic file loading and input reading)
The structure separates years at the root, with the 2025 solutions nested under a src directory.
advent_code/
├── 2022/
├── 2023/
├── 2024/
├── 2025/ <-- Active Year
│ └── src/ <-- JavaScript Source
│ ├── day1/
│ │ ├── input.txt
│ │ ├── puzzle1.js (Part 1)
│ │ └── puzzle2.js (Part 2)
│ └── index.js <-- The main execution script
└── README.md <-- This file
The execution is handled by the central index.js script, which automatically loads the correct input.txt and runs both puzzle1.js and puzzle2.js for the specified day.
-
Navigate to the source directory:
cd 2025/src -
Run the main script and specify the day number as an argument:
# Replace [DAY_NUMBER] with 1, 2, 3, etc. node index.js [DAY_NUMBER] # Example for Day 1: node index.js 1
Day 1
Result Part 1: [Result from puzzle1.js]
Result Part 2: [Result from puzzle2.js]
The solve function in each puzzle[N].js file must be exported and accept the full input string as its only argument.
This project is for educational purposes.
🎄✨