mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 05:21:09 +00:00
commit
bb3287ac0a
|
@ -10,8 +10,9 @@ def radixsort(lst):
|
||||||
|
|
||||||
# split lst between lists
|
# split lst between lists
|
||||||
for i in lst:
|
for i in lst:
|
||||||
tmp = i // placement
|
tmp = int((i / placement) % RADIX)
|
||||||
buckets[tmp % RADIX].append( i )
|
buckets[tmp].append(i)
|
||||||
|
|
||||||
if maxLength and tmp > 0:
|
if maxLength and tmp > 0:
|
||||||
maxLength = False
|
maxLength = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user