All Algorithms implemented in Python the-algorithms.com/
Go to file
Mantas Zimnickas 12f69a86f5 Remove code with side effects from main (#1577)
* Remove code with side effects from main

When running tests withy pytest, some modules execute code in main scope
and open plot or browser windows.

Moves such code under `if __name__ == "__main__"`.

* fixup! Format Python code with psf/black push
2019-11-17 19:38:48 +01:00
.github || true (#1572) 2019-11-14 18:22:23 -08:00
arithmetic_analysis Addition of Secant Method (#876) 2019-10-28 19:27:00 +01:00
backtracking Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
blockchain Add Topological Sort (#1302) 2019-10-18 08:13:58 +02:00
boolean_algebra Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
ciphers Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
compression Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
conversions psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
data_structures Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
digital_image_processing Add algorithm to rotate images (#1420) 2019-10-22 21:19:38 +02:00
divide_and_conquer psf/black code formatting (#1421) 2019-10-22 19:13:48 +02:00
dynamic_programming Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
file_transfer GitHub Action formats our code with psf/black (#1569) 2019-11-14 19:59:43 +01:00
fuzzy_logic Remove code with side effects from main (#1577) 2019-11-17 19:38:48 +01:00
graphs Fix bug in bellman_ford.py (#1544) 2019-11-10 17:01:38 +08:00
hashes psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
images Add Travis_CI_tests_are_failing.md (#1499) 2019-10-28 13:38:08 +01:00
linear_algebra Fixes in methods and tests in Linear Algebra (#1432) 2019-10-24 12:39:51 +02:00
machine_learning Remove code with side effects from main (#1577) 2019-11-17 19:38:48 +01:00
maths GitHub Action formats our code with psf/black (#1569) 2019-11-14 19:59:43 +01:00
matrix psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
networking_flow psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
neural_network Remove code with side effects from main (#1577) 2019-11-17 19:38:48 +01:00
other Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
project_euler Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
scripts minor changes in format of DIRECTORY.md (#1461) 2019-10-25 19:33:24 +02:00
searches Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
sorts recursive quick sort (#1536) 2019-10-31 19:49:25 +01:00
strings Word Occurence Script Added (#1576) 2019-11-17 12:57:26 +01:00
traversals psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
web_programming Remove code with side effects from main (#1577) 2019-11-17 19:38:48 +01:00
.coveragerc Add pytest-cov (#1578) 2019-11-17 19:37:58 +01:00
.gitignore Update .gitignore to remove __pycache__/ (#1127) 2019-08-17 00:46:33 +02:00
.travis.yml Add pytest-cov (#1578) 2019-11-17 19:37:58 +01:00
CONTRIBUTING.md Readability of CONTRIBUTING.md (#1422) 2019-10-23 04:07:50 +08:00
DIRECTORY.md Add pytest-cov (#1578) 2019-11-17 19:37:58 +01:00
LICENSE.md Create CONTRIBUTING.md (#864) 2019-06-02 12:14:18 +08:00
README.md Readability of CONTRIBUTING.md (#1422) 2019-10-23 04:07:50 +08:00
requirements.txt Add pytest-cov (#1578) 2019-11-17 19:37:58 +01:00
Travis_CI_tests_are_failing.md Add Travis_CI_tests_are_failing.md (#1499) 2019-10-28 13:38:08 +01:00

The Algorithms - Python

Donate  Build Status  LGTM  Gitter chat  contributions welcome   

All algorithms implemented in Python (for education)

These implementations are for learning purposes. They may be less efficient than the implementations in the Python standard library.

Contribution Guidelines

Read our Contribution Guidelines before you contribute.

Community Channel

We're on Gitter! Please join us.

List of Algorithms

See our directory.

Open in Gitpod