mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 01:00:15 +00:00
Merge pull request #135 from KuLi/radix_sort-fix
#130 fixed radix sort for python 3
This commit is contained in:
commit
54eb79f53a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user