TheAlgorithms/Python

Algorithms implemented in Python

What

Educational implementations of algorithms in Python, one file per algorithm, with doctests.

What's inside: sorting, searching, graphs, dynamic programming, data structures, maths, ciphers, ML basics, and more folders.

Reach for it when

you want a readable reference implementation of an algorithm.