Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
TheAlgorithms
/
Python
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
51.1k
Star
225k
Code
Issues
8
Pull requests
412
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Commits
Breadcrumbs
History for
Python
data_structures
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 13, 2026
fix:bucket count type (#15063)
Show description for aa38af8
3 people
authored
aa38af8
View commit details
Copy full SHA for aa38af8
View code at this point
Browse repository at this point
Add XOR Linked List implementation with doctests (#13699)
Show description for bde9150
3 people
authored
bde9150
View commit details
Copy full SHA for bde9150
View code at this point
Browse repository at this point
Add partition_list in linked_list (#13325)
martinoywa
authored
0051e4e
View commit details
Copy full SHA for 0051e4e
View code at this point
Browse repository at this point
Add find kth_element_from_end in linked_lists (#13322)
Show description for b59e859
martinoywa
authored
b59e859
View commit details
Copy full SHA for b59e859
View code at this point
Browse repository at this point
Commits on Sep 12, 2026
data_structures: add return type annotations (ANN201) (#15306)
Show description for 945b5ab
priya-sundaram-dev
authored
945b5ab
View commit details
Copy full SHA for 945b5ab
View code at this point
Browse repository at this point
ruff rule ANN202 missing-return-type-private-function (#15298)
Show description for 0525ef5
cclauss
authored
0525ef5
View commit details
Copy full SHA for 0525ef5
View code at this point
Browse repository at this point
ruff rule ANN204 missing-return-type-special-method (#15300)
cclauss
authored
0da45b1
View commit details
Copy full SHA for 0da45b1
View code at this point
Browse repository at this point
ruff rules RET for return statements (#15301)
Show description for 7bd1e98
cclauss
authored
7bd1e98
View commit details
Copy full SHA for 7bd1e98
View code at this point
Browse repository at this point
Commits on Sep 11, 2026
Add data_structures/linked_list/sorted_linked_list.py
cclauss
committed
201c2fb
View commit details
Copy full SHA for 201c2fb
View code at this point
Browse repository at this point
Use dataclasses, use iter to remove print function
Show description for 37d41a7
cclauss
committed
37d41a7
View commit details
Copy full SHA for 37d41a7
View code at this point
Browse repository at this point
Fix
Hardvan
authored and
cclauss
committed
9215334
View commit details
Copy full SHA for 9215334
View code at this point
Browse repository at this point
Fix doctests
Hardvan
authored and
cclauss
committed
7a569ce
View commit details
Copy full SHA for 7a569ce
View code at this point
Browse repository at this point
Fix
Hardvan
authored and
cclauss
committed
d2eae4d
View commit details
Copy full SHA for d2eae4d
View code at this point
Browse repository at this point
Fix
Hardvan
authored and
cclauss
committed
49fdd2e
View commit details
Copy full SHA for 49fdd2e
View code at this point
Browse repository at this point
Fix
Hardvan
authored and
cclauss
committed
2a7f02f
View commit details
Copy full SHA for 2a7f02f
View code at this point
Browse repository at this point
Fix
Hardvan
authored and
cclauss
committed
98dc827
View commit details
Copy full SHA for 98dc827
View code at this point
Browse repository at this point
Fix
Hardvan
authored and
cclauss
committed
5c847f3
View commit details
Copy full SHA for 5c847f3
View code at this point
Browse repository at this point
Fix
Hardvan
authored and
cclauss
committed
2922306
View commit details
Copy full SHA for 2922306
View code at this point
Browse repository at this point
Fix
Hardvan
authored and
cclauss
committed
c2a419e
View commit details
Copy full SHA for c2a419e
View code at this point
Browse repository at this point
Fix type hint
Hardvan
authored and
cclauss
committed
010e902
View commit details
Copy full SHA for 010e902
View code at this point
Browse repository at this point
Add return type hint
Hardvan
authored and
cclauss
committed
93675b6
View commit details
Copy full SHA for 93675b6
View code at this point
Browse repository at this point
Fix
Hardvan
authored and
cclauss
committed
e5f92c7
View commit details
Copy full SHA for e5f92c7
View code at this point
Browse repository at this point
Fix comments
Hardvan
authored and
cclauss
committed
e456630
View commit details
Copy full SHA for e456630
View code at this point
Browse repository at this point
Add Merge Sort Linked List algorithm
Hardvan
authored and
cclauss
committed
21dfa5a
View commit details
Copy full SHA for 21dfa5a
View code at this point
Browse repository at this point
Add test cases to balanced_parentheses.py (#11870)
Show description for 4a766c6
1227haran
and
cclauss
authored
4a766c6
View commit details
Copy full SHA for 4a766c6
View code at this point
Browse repository at this point
Fix treap priorities (#14775)
Show description for 499d398
Goorzhel
and
cclauss
authored
499d398
View commit details
Copy full SHA for 499d398
View code at this point
Browse repository at this point
fix: correct treap split() comparison to match docstring behavior (#14762)
Show description for 3d11d0c
maitriupadhyay03-cell
and
cclauss
authored
3d11d0c
View commit details
Copy full SHA for 3d11d0c
View code at this point
Browse repository at this point
Commits on Sep 10, 2026
Fixes The Bug In Radix Tree. Issue #11316 (#11385)
Show description for 1d83421
4 people
authored
1d83421
View commit details
Copy full SHA for 1d83421
View code at this point
Browse repository at this point
Add splay tree (self-adjusting BST) (#15266)
Show description for faa6b36
priya-sundaram-dev
authored
faa6b36
View commit details
Copy full SHA for faa6b36
View code at this point
Browse repository at this point
Commits on Sep 9, 2026
pre-commit: Add zizmor and replace prettier with rumdl (#15236)
Show description for 3725b91
cclauss
authored
3725b91
View commit details
Copy full SHA for 3725b91
View code at this point
Browse repository at this point
Commits on Sep 8, 2026
Fix ty invalid assignment (#15222)
Show description for 636dd57
kadubhumika
and
pre-commit-ci[bot]
authored
636dd57
View commit details
Copy full SHA for 636dd57
View code at this point
Browse repository at this point
Algorithm to get maximum path sum of a binary tree. (#9414)
Show description for aa1c853
3 people
authored
aa1c853
View commit details
Copy full SHA for aa1c853
View code at this point
Browse repository at this point
Commits on Sep 4, 2026
feat: add kth next greater element script to /data_structures/stacks/. (#14728)
Show description for c82b724
StarsExpress
and
poyea
authored
c82b724
View commit details
Copy full SHA for c82b724
View code at this point
Browse repository at this point
Commits on Jul 31, 2026
Improve docstrings in sorts/bubble_sort.py (#14924)
Show description for 948d4cb
alisatwat3
and
cclauss
authored
948d4cb
View commit details
Copy full SHA for 948d4cb
View code at this point
Browse repository at this point
Commits on Mar 7, 2026
feat: add Jarvis March (Gift Wrapping) convex hull algorithm (#14225)
Show description for ac05f12
AliAlimohammadi
and
pre-commit-ci[bot]
authored
ac05f12
View commit details
Copy full SHA for ac05f12
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.