machadoit / challenges

:shipit: My solutions to programming challenges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Challenges

Code Health Codacy Badge Code Climate

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.

Setup

mkvirtualenv --python=python3 challenges
pip install -r requirements_pinned.txt

Quickstart

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.

Testing

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.

About

:shipit: My solutions to programming challenges


Languages

Language:Python 99.7%Language:Shell 0.3%