Welcome to Advent of Code 2024! πβ¨ This repository contains solutions, notes, and resources for the Advent of Code 2024 challenge. Whether you're here to collaborate, compare solutions, or just curious about my approach, you're in the right place!
Advent of Code is an annual event featuring daily programming puzzles during December. Each day from December 1st to December 25th, a new puzzle is released at midnight EST. These puzzles test your problem-solving skills and programming abilities across a wide range of topics, including algorithms, data structures, and more.
.
βββ puzzles/
β βββ day1/
β β βββ Solution.java
β β βββ README.md
β βββ day2/
β β βββ Solution.java
β β βββ README.md
βββ utils/
β βββ Utils.java # Common helper functions used across days
βββ resources/
β βββ day1/
β β βββ input.txt
β βββ day2/
β β βββ input.txt
βββ LICENSE # Repository license
βββ README.md # This file
dayXX/
: Each folder represents one day of the challenge, containing the input, solution, and an explanation of the approach.utils/
: Shared utilities and helper functions.resources/
: Input files for each day's puzzle.LICENSE
: Licensing information for this repository.README.md
: Overview of the repository (this file).
- Java 23 or later
- Basic understanding of programming concepts and algorithms
-
Clone the repository:
git clone https://github.com/matteo-campana/advent-of-code.git cd advent-of-code-2024
-
Navigate to the day's folder:
cd puzzles/day1
-
Compile and run the solution:
javac Solution.java java Solution
- Fork the repository and create a new branch.
- Add your solution or improvement.
- Create a pull request and include a brief explanation of your changes.
- Read the problem statement carefully.
- Break the problem into smaller, manageable steps.
- Write tests to validate your solution with sample inputs.
- Optimize only after getting a correct solution.
This repository is licensed under the MIT License. See the LICENSE file for details.
- Thanks to Eric Wastl for creating and maintaining Advent of Code.
- Thanks to the Advent of Code community for their support and collaboration.
Good luck, and happy coding! π π