Skip to content

Latest commit

 

History

History

2018

Advent of Code 2018

https://adventofcode.com/2018

Language

This year I chose to implement in Python 2, but ported the code such that it works in either Python 2 or Python 3.

Preparation

Install Python 3.

Running tests

The tests can be run using pytest within a Python 3 venv:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pytest

Execution time

Some solutions do take a long time to execute (on the order of 20 minutes) using the standard CPython distribution. The use of PyPy drastically improves the execution time.