Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ exchange_sort.py
File
exchange_sort.py
sorts/exchange_sort.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
exchange_sort(numbers: list[int]) -> list[int]:
2
""
"
3
Uses exchange sort to sort a list of numbers.
4
Source: https://en.wikipedia.org/wiki/Sorting_algorithm
#Exchange_sort
Callers
nothing calls this directly
Calls
2
exchange_sort
Function · 0.85
split
Method · 0.80
Tested by
no test coverage detected