All Algorithms implemented in Python the-algorithms.com/
Go to file
Harsh buddhdev ffaa976f6c
Fixes #9943 (#10252)
* added doctest for all_permutations.py

* added doctest for all_subsequences.py

* added doctest for all_subsequences.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* doctest added

* updated

* Update backtracking/all_subsequences.py

---------

Co-authored-by: Harsh Buddhdev <harshbuddhdev5@.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
2024-06-02 20:00:26 -07:00
.devcontainer
.github
.vscode
audio_filters
backtracking Fixes #9943 (#10252) 2024-06-02 20:00:26 -07:00
bit_manipulation use format to remove '0b' (#11307) 2024-06-01 18:41:40 -07:00
blockchain
boolean_algebra [pre-commit.ci] pre-commit autoupdate (#11322) 2024-03-13 07:52:41 +01:00
cellular_automata
ciphers Enable ruff ICN001 rule (#11329) 2024-03-28 18:03:23 +00:00
compression Enable ruff RUF002 rule (#11377) 2024-04-22 21:51:47 +02:00
computer_vision
conversions [pre-commit.ci] pre-commit autoupdate (#11322) 2024-03-13 07:52:41 +01:00
data_structures
digital_image_processing Enable ruff RUF002 rule (#11377) 2024-04-22 21:51:47 +02:00
divide_and_conquer add doctest/document to actual_power and document to power (#11187) 2024-06-01 02:09:03 -07:00
dynamic_programming Enable ruff RUF003 rule (#11376) 2024-04-22 21:56:14 +02:00
electronics
file_transfer Update receive_file.py (#8541) 2023-03-31 16:08:13 +02:00
financial
fractals Enable ruff PGH003 rule (#11345) 2024-04-02 21:29:34 +02:00
fuzzy_logic Enable ruff RUF001 rule (#11378) 2024-04-22 21:45:24 +02:00
genetic_algorithm
geodesy
geometry
graphics Enable ruff PGH003 rule (#11345) 2024-04-02 21:29:34 +02:00
graphs [pre-commit.ci] pre-commit autoupdate (#11417) 2024-05-27 21:56:48 -04:00
greedy_methods Enable ruff INP001 rule (#11346) 2024-04-02 21:13:56 +02:00
hashes Enable ruff RUF002 rule (#11377) 2024-04-22 21:51:47 +02:00
knapsack [pre-commit.ci] pre-commit autoupdate (#11322) 2024-03-13 07:52:41 +01:00
linear_algebra
linear_programming
machine_learning issue #11150 Ensure explicit column selection and data type setting in data reading process. (#11302) 2024-06-02 18:27:35 -07:00
maths Remove duplicate implementation of median of two arrays algorithm (#11420) 2024-06-01 05:17:07 -04:00
matrix Fix some SIM114 per file ignores (#11395) 2024-05-10 21:59:53 +02:00
networking_flow
neural_network Enable ruff UP031 rule (#11388) 2024-04-30 06:40:26 +02:00
other Enable ruff RUF002 rule (#11377) 2024-04-22 21:51:47 +02:00
physics
project_euler [pre-commit.ci] pre-commit autoupdate (#11417) 2024-05-27 21:56:48 -04:00
quantum
scheduling Enable ruff SIM102 rule (#11341) 2024-04-02 03:27:56 +02:00
scripts
searches Enable ruff PLW0120 rule (#11330) 2024-03-28 18:28:54 +01:00
sorts Use spawn start method in multiprocessing programs (#11391) 2024-05-02 18:43:59 +02:00
strings Enable ruff RUF003 rule (#11376) 2024-04-22 21:56:14 +02:00
web_programming Enable ruff S113 rule (#11375) 2024-04-21 19:34:18 +02:00
.gitattributes
.gitignore
.gitpod.yml
.pre-commit-config.yaml
CONTRIBUTING.md
DIRECTORY.md
LICENSE.md
pyproject.toml
README.md
requirements.txt

The Algorithms - Python

Gitpod Ready-to-Code Contributions Welcome Discord chat Gitter chat
GitHub Workflow Status pre-commit code style: black

All algorithms implemented in Python - for education

Implementations are for learning purposes only. They may be less efficient than the implementations in the Python standard library. Use them at your discretion.

Getting Started

Read through our Contribution Guidelines before you contribute.

Community Channels

We are on Discord and Gitter! Community channels are a great way for you to ask questions and get help. Please join us!

List of Algorithms

See our directory for easier navigation and a better overview of the project.