Puzzle solutions written in Python. Solutions are presented as they were when the answers were submitted, with minor formatting applied.
My goal was to solve the problems as fast as possible, not to write the most efficient solution.
Create a .env
file with the content SESSION_COOKIE=<your_aoc_session_cookie>
. Your session cookie can be found in your browser.
Run ./src/aoc.sh <day>
to create a new puzzle folder with a main.py
file containing starter code and data.txt
containing the input of the day.
Install dependencies with pip3 install -r "requirements.txt"
.
Run the solutions with python3 src/<day>/main.py
.