This directory contains solutions for Advent of Code, using Python.
I wrote a python script which executes my solutions with their respective input data.
Dependencies:
- Python >= 3.11
To run a solution for a specific Challenge, run the following:
cd ulinja
./solve [-y YEAR] DAYFor help with the runner:
./solve -hCode for the solvers is organized within the aoc module.
Each solver provides a module called main, with a function called main, which runs the solver.
Input data for each challenge is in the data directory, and solvers expect to find it there.
adventofcode
├── aoc # Top level module for sourcecode
│ ├── utils # Shared utils
│ │ └── file.py
│ └── year23
│ ├── day01
│ │ ├── foo.py # Code specific to Y23D01
│ │ └── main.py # Solver for Y23D01
│ ├── day02
│ │ ├── bar.py
│ │ └── main.py
│ .
│ .
│ .
├── data # Directory containing challenge input data
│ ├── 23-01.txt # My input data for Y23D01
│ ├── 23-02.txt
│ .
│ .
│ .
└── solve # Main entrypoint to run solvers for challenges