mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-11 07:07:15 +08:00
#130 fixed radix sort for python 3
This commit is contained in:
@ -10,7 +10,7 @@ def radixsort(lst):
|
||||
|
||||
# split lst between lists
|
||||
for i in lst:
|
||||
tmp = i / placement
|
||||
tmp = i // placement
|
||||
buckets[tmp % RADIX].append( i )
|
||||
if maxLength and tmp > 0:
|
||||
maxLength = False
|
||||
|
Reference in New Issue
Block a user