Advent of Code 2021 solutions written in Python. π
The file structure is follows:
advent-of-code-2021
βββ data # Contains the input files for each day
β βββ day01
β βββ day02
β βββ ...
βββ problems # Implemented solutions for each day
β βββ day01
β βββ day02
β βββ ...
βββ tests # Tests for each day
β βββ day01
β βββ day02
β βββ ...
βββ utils # Utility methods to read in files and examples
βββ setup.py # Package information
βββ README.md
(Optional) Create a conda environment:
foo@bar:~$ conda create -n adventOfCode2021
foo@bar:~$ conda activate adventOfCode2021
Install local package in editable mode:
foo@bar:~$ cd advent-of-code-2021
foo@bar:~$ pip install -e .
Run tests:
foo@bar:~$ pytest .\tests\
Happy coding π₯³