My solutions to programming puzzles & challenges.
Each top-level directory corresponds to one site that has challenge problems, and each directory under that is my solution to a particular problem.
Disclaimer: These solutions were developed by me individually unless otherwise stated and are shared for education and curiosity. Please do not use them as your own. If you're working on the same problem, please do not view my answer until you've solved it on your own. If you're working on a related problem, it's generally okay to cite a solution to another problem as a reference.
mkvirtualenv --python=python3 challenges
pip install -r requirements_pinned.txt
Just browse for a problem of interest. Most can be run from the problem's directory with:
python solution.py
Alternatively, some problems (example) include a one-line bash script to run the solution with sample required input values:
./run.sh
All solutions are written in Python 3 unless otherwise stated.
Similary to run tests for a particular problem, cd
into its directory, then run:
nose2
Many problems have tests included, but some older ones don't yet.