Skip to content

ulinja/adventofcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

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] DAY

For help with the runner:

./solve -h

Module Structure

Code 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

About

My attempts at advent of code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages