Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sorts/radix_sort.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
This is a pure Python implementation of the quick sort algorithm
This is a pure Python implementation of the radix sort algorithm
For doctests run following command:
python -m doctest -v radix_sort.py
or
Expand All @@ -23,6 +23,8 @@ def radix_sort(list_of_ints: list[int]) -> list[int]:
>>> radix_sort([1,100,10,1000]) == sorted([1,100,10,1000])
True
"""
# https://en.wikipedia.org/wiki/Radix_sort

RADIX = 10
placement = 1
max_digit = max(list_of_ints)
Expand Down