Skip to content

Fix docstring #6461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 1, 2022
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