We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cfd825 commit 65c2d50Copy full SHA for 65c2d50
sorts/radix_sort.py
@@ -30,7 +30,7 @@ def radix_sort(list_of_ints: List[int]) -> List[int]:
30
max_digit = max(list_of_ints)
31
while placement <= max_digit:
32
# declare and initialize empty buckets
33
- buckets = [list() for _ in range(RADIX)]
+ buckets: List[list] = [list() for _ in range(RADIX)]
34
# split list_of_ints between the buckets
35
for i in list_of_ints:
36
tmp = int((i / placement) % RADIX)
0 commit comments