| Feb |
MAR |
Apr |
|
20 |
|
| 2024 |
2025 |
2026 |
About this capture
The Wayback Machine - http://web.archive.org/web/20250320190343/https://github.com/TheAlgorithms/Python
Skip to content
Navigation Menu
●
GitHub Copilot
Write better code with AI
Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
●
●
●
●
●
By company size
●
●
●
●
By use case
●
●
●
●
By industry
●
●
●
●
●
View all solutions
●
Topics
●
●
●
●
●
Explore
●
●
●
●
●
●
●
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
●
●
●
●
Enterprise platform
AI-powered developer platform
Available add-ons
Advanced Security
Enterprise-grade security features
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
●
Search or jump to...
Clear
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
To see all available qualifiers, see our documentation.
focus
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
TheAlgorithms
/
Python
Public
●
Notifications
You must be signed in to change notification settings
●
Fork
46.4k
Star
199k
All Algorithms implemented in Python
thealgorithms.github.io/Python/
License
MIT license
199k
stars
46.4k
forks
Branches
Tags
Activity
Star
Notifications
You must be signed in to change notification settings
●
Code
●
Issues
64
●
Pull requests
289
●
Discussions
●
Actions
●
Projects
0
●
Wiki
●
Security
●
Insights
Additional navigation options
●
Code
●
Issues
●
Pull requests
●
Discussions
●
Actions
●
Projects
●
Wiki
●
Security
●
Insights
TheAlgorithms/Python
master
BranchesTags
Folders and files
| Name | Name |
Last commit message
|
Last commit date
|
|---|
Latest commit
History
3,502 Commits
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Repository files navigation
●README
●Code of conduct
●MIT license







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.
About
All Algorithms implemented in Python
thealgorithms.github.io/Python/
Topics
python
education
algorithm
practice
interview
sorting-algorithms
learn
algos
algorithm-competitions
sorts
hacktoberfest
algorithms-implemented
community-driven
searches
Resources
Readme
License
MIT license
Code of conduct
Code of conduct
Activity
Custom properties
Stars
199k
stars
Watchers
5.9k
watching
Forks
46.4k
forks
Report repository
No releases published
Sponsor this project
●
liberapay.com/TheAlgorithms
No packages published
+ 1,199 contributors
Languages
●
Python
99.9%
●
Other
0.1%
Footer
© 2025 GitHub, Inc.
●
Terms
●
Privacy
●
Security
●
Status
●
Docs
●
Contact
●
●
ation
You can’t perform that action at this time.