All Algorithms implemented in Python the-algorithms.com/
Go to file
Caeden Perelli-Harris cfbbfd9896
Merge and add benchmarks to palindrome algorithms in the strings/ directory (#8749)
* refactor: Merge and add benchmarks to palindrome

* updating DIRECTORY.md

* chore: Fix failing tests

* Update strings/palindrome.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* Update palindrome.py

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-05-25 12:56:23 +02:00
.github Fix broken links to Gitter Community (Fixes: #8197) (#8546) 2023-03-26 18:20:47 +02:00
arithmetic_analysis Fix mypy errors in lu_decomposition.py (attempt 2) (#8100) 2023-04-01 07:11:24 +02:00
audio_filters Replace flake8 with ruff (#8184) 2023-03-16 13:31:29 +01:00
backtracking Reduce the complexity of backtracking/word_search.py (#8166) 2023-03-10 15:18:05 +05:30
bit_manipulation add numbers different signs algorithm. (#8008) 2022-12-15 17:11:32 +13:00
blockchain pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
boolean_algebra Update and_gate.py (#8690) 2023-05-10 21:38:52 +12:00
cellular_automata Update game_of_life.py (#8703) 2023-05-10 21:34:36 +12:00
ciphers add __main__ around print (#8747) 2023-05-19 12:40:52 +12:00
compression pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
computer_vision Revert "Add LeNet Implementation in PyTorch (#7070)" (#8621) 2023-04-08 06:22:26 +05:30
conversions Correct ruff failures (#8732) 2023-05-14 22:03:13 +01:00
data_structures Solving the Top k most frequent words problem using a max-heap (#8685) 2023-04-27 23:02:07 +05:30
digital_image_processing Correct ruff failures (#8732) 2023-05-14 22:03:13 +01:00
divide_and_conquer Correct ruff failures (#8732) 2023-05-14 22:03:13 +01:00
dynamic_programming Correct ruff failures (#8732) 2023-05-14 22:03:13 +01:00
electronics added reference link. (#8667) 2023-04-18 09:44:06 +02:00
file_transfer Update receive_file.py (#8541) 2023-03-31 16:08:13 +02:00
financial Fix docstring in present_value.py (#8702) 2023-05-01 06:29:42 +05:30
fractals pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
fuzzy_logic Misc fixes across multiple algorithms (#6912) 2022-10-16 10:55:38 +05:30
genetic_algorithm Reduce the complexity of genetic_algorithm/basic_string.py (#8606) 2023-05-16 09:47:50 +12:00
geodesy pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
graphics The black formatter is no longer beta (#5960) 2022-01-30 20:29:54 +01:00
graphs Reduce the complexity of graphs/bi_directional_dijkstra.py (#8165) 2023-03-28 23:41:54 +02:00
greedy_methods Added minimum waiting time problem solution using greedy algorithm (#8701) 2023-05-01 12:23:03 +02:00
hashes Revamp md5.py (#8065) 2023-04-01 22:05:01 +02:00
knapsack pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
linear_algebra Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
machine_learning local_weighted_learning.py: fix mypy errors and more (#8073) 2023-05-17 12:05:55 +12:00
maths Dual Number Automatic Differentiation (#8760) 2023-05-25 08:04:42 +02:00
matrix pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
networking_flow clean of unnecessary checks, imports, calls (#7993) 2022-11-21 00:00:27 +13:00
neural_network The ELU activation is added (#8699) 2023-05-02 16:36:28 +02:00
other Fixes broken "Create guess_the_number_search.py" (#8746) 2023-05-17 18:47:23 +12:00
physics Correct ruff failures (#8732) 2023-05-14 22:03:13 +01:00
project_euler Add Project Euler problem 79 solution 1 (#8607) 2023-04-02 17:34:11 +05:30
quantum Rename quantum_random.py.DISABLED.txt to quantum_random.py (#8601) 2023-04-02 10:18:19 +05:30
scheduling Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
scripts chore: additional Project Euler solution hash (#8593) 2023-04-01 08:29:26 +02:00
searches Correct ruff failures (#8732) 2023-05-14 22:03:13 +01:00
sorts Working binary insertion sort in Python (#8024) 2023-05-11 06:50:32 +12:00
strings Merge and add benchmarks to palindrome algorithms in the strings/ directory (#8749) 2023-05-25 12:56:23 +02:00
web_programming Mark fetch anime and play as broken (#8763) 2023-05-25 07:59:15 +02:00
.gitattributes Create .gitattributes for Cross OS compatibility (#3410) 2020-10-17 07:25:25 +02:00
.gitignore chore: update .gitignore (#6263) 2022-07-23 07:56:59 +05:30
.gitpod.yml Change gitpod configuration for python3. (#1827) 2020-04-07 12:20:08 +02:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate (#8759) 2023-05-23 05:54:30 +02:00
CONTRIBUTING.md Fix broken links to Gitter Community (Fixes: #8197) (#8546) 2023-03-26 18:20:47 +02:00
DIRECTORY.md Merge and add benchmarks to palindrome algorithms in the strings/ directory (#8749) 2023-05-25 12:56:23 +02:00
LICENSE.md LICENSE: Year change (#5920) 2022-03-16 23:40:48 +08:00
pyproject.toml Reduce the complexity of graphs/bi_directional_dijkstra.py (#8165) 2023-03-28 23:41:54 +02:00
README.md Fix broken links to Gitter Community (Fixes: #8197) (#8546) 2023-03-26 18:20:47 +02:00
requirements.txt Revert "Add LeNet Implementation in PyTorch (#7070)" (#8621) 2023-04-08 06:22:26 +05:30

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.