Skip to content

πŸŽ„Solutions for the Advent of Code 2024 challenges, written in Python.

Notifications You must be signed in to change notification settings

Kallistina/advent-of-code-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ„ Advent of Code 2024 πŸŽ„

Welcome to my Advent of Code 2024 repository! Here, you'll find my solutions to the daily programming puzzles from Advent of Code. Each puzzle is an exciting challenge designed to test and improve your problem-solving and coding skills.


πŸ“– What is Advent of Code?

Advent of Code is an annual set of Christmas-themed programming challenges. Starting from December 1st, a new problem is released every day until December 25th. Participants from around the world solve these problems in the programming language of their choice. It's a fun and educational way to:

  • Sharpen coding skills
  • Learn new techniques and algorithms
  • Engage in a global coding community
  • Celebrate the holiday season with a coding twist!

πŸ› οΈ How to Run the Code

Each day's solution is written in Python and stored in its respective directory. If you'd like to run the code for a specific day's problem, follow the steps below:

Prerequisites

  • Python 3.8 or later must be installed on your system.
    Download Python

  • (Optional) Install the required dependencies using pip. Some days may use additional libraries.

pip install -r requirements.txt

Running a Solution

  1. Clone the repository:

    git clone https://github.com/your-username/advent-of-code-2024.git
    cd advent-of-code-2024
  2. Navigate to the day's folder:
    Each day’s solution is stored in a folder named dayXX, where XX is the day number (e.g., day01, day02).

    cd day01
  3. Run the solution script:
    The puzzle input is usually required. Place the input file in the same directory as the script, named puzzle_input.txt.

    python day01_solution.py

    Replace day01_solution.py with the appropriate script for the day you wish to run.

  4. Output:
    The solution output will be displayed in the console.


πŸ“ Repository Structure

advent-of-code-2024/
β”œβ”€β”€ day01/
β”‚   β”œβ”€β”€ day01_solution.py
β”‚   β”œβ”€β”€ puzzle_input.txt
β”œβ”€β”€ day02/
β”‚   β”œβ”€β”€ day02_solution.py
β”‚   β”œβ”€β”€ puzzle_input.txt
β”œβ”€β”€ requirements.txt
└── README.md
  • dayXX/: Contains the solution script, input file, and any notes for a specific day.
  • requirements.txt: Lists any Python dependencies required for some solutions.
  • README.md: You're reading it!

πŸ’» Contributing

Feel free to fork the repository and submit pull requests with your own solutions or optimizations. Contributions are always welcome!


🌟 Acknowledgments

A huge thanks to Eric Wastl for creating and maintaining Advent of Code, as well as the incredible community of coders who make it such an enjoyable event every year!


Happy Coding! πŸŽ…πŸŽ„

About

πŸŽ„Solutions for the Advent of Code 2024 challenges, written in Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages