The Algorithms - Python

Python implementations of classic algorithms, built for learning rather than production

GitHub 226k Learn MIT Web

The Algorithms - Python is the Python edition of The Algorithms, a community-driven project that implements classic algorithms. It is intended for students, self-learners and interview candidates who want to read working code for well-known techniques.

The repository is organized by category, and a directory file makes it easier to browse. Continuous integration runs pre-commit and ruff checks on the code. The implementations are written for education, so they may be less efficient than the Python standard library, and the README asks readers to use them at their own discretion.

Categories

Similar apps

System Design Primer

Interview Prep Learn

378k

A free guide to large-scale system design and interview prep, with flashcards

JavaScript Algorithms

Interview Prep Learn

197k

JavaScript implementations of classic data structures and algorithms, with explanations

Tech Interview Handbook

Interview Prep Learn

143k

Free, condensed interview prep for busy engineers, from resume to offer