Implementations are for learning purposes only. They may be less efficient than the implementations in the Python standard library. Use them at your discretion.
π Read through our Contribution Guidelines before you contribute.
We are on Discord and Gitter! Community channels are a great way for you to ask questions and get help. Please join us!
See our directory for easier navigation and a better overview of the project.
Hereβs how you can clone this repository and run algorithms locally:
- Clone the repository
git clone https://github.com/TheAlgorithms/Python.git cd Python - Run an algorithm python3 path/to/algorithm.py
- Use the interactive Python shell python3
from algorithms.category import algorithm_name algorithm_name(arguments)
- Run doctests to verify correctness python3 -m doctest -v path/to/algorithm.py