Welcome to my Advent of Code 2024 solutions repository!
This repository contains my solutions for the Advent of Code 2024 challenges, written entirely in Java. Each day’s challenge is implemented as a separate class (sometimes part 2 is implemented as a separate class as well), with input files organized in the resources
folder.
src/
- Java Code: Each day’s solution is implemented in a separate Java file, named as
DayX.java
(e.g.,Day1.java
,Day10.java
). - Optimized or Extended Solutions: For some days, additional files like
Day11Optimized.java
orDay13Pt2.java
provide alternative or part 2 implementations.
- Java Code: Each day’s solution is implemented in a separate Java file, named as
src/resources/
- Input Files: Inputs for each day’s challenge are stored here.
- File naming format:
dayX.txt
(e.g.,day1.txt
,day15.txt
).
- File naming format:
- Input Files: Inputs for each day’s challenge are stored here.
For Day 11, the structure includes:
- Solution Files:
Day11.java
(initial solution)Day11Optimized.java
(optimized solution)
- Input File:
src/resources/day11.txt
The build-run job is configured to solve daily tasks with the provided default input
git clone https://github.com/svoychik/adventofcode2024.git
cd adventofcode2024
- Open the project in your preferred Java IDE
- Navigate to the corresponding Java file (e.g.,
Day10.java
). - Ensure the input file (e.g.,
day10.txt
) exists in theresources
folder. - Execute the
main
method of the Java file to see the result