These are my solutions in Python to some of the Advent of Code puzzles. My primary aim is to make the code readable, making it fast is a secondary goal.
- Python 3.6+
Optional:
- A POSIX-compliant shell (
/bin/sh) - A shell command
python3to run Python 3.6+ (any implementation) - A shell command
pypy3to invoke PyPy 3.6+
- Run a single day's solver:
python3 run.py 2019 10(or./run.sh 2019 10) - Run all solvers:
./run.sh - Run all solvers from one year:
./run.sh 2019
When invoked with the optional argument --time, run.sh print the
execution time for each day. If the command pypy3 invokes a suitable
version of PyPy, run.sh uses it for any solvers that are expected to
run faster under PyPy than CPython.