Skip to content

Update radix_sort.py #157

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 2 commits into from
Nov 1, 2017
Merged

Update radix_sort.py #157

merged 2 commits into from
Nov 1, 2017

Conversation

satanb4
Copy link
Contributor

@satanb4 satanb4 commented Oct 11, 2017

This will fix the error in the Radix list index showing as float
```

split lst between lists

for i in lst:
  tmp = int((i / placement) % RADIX)
  buckets[tmp].append(i)
  if maxLength and tmp > 0:
    maxLength = False

This will fix the error in the list index showing as float
@harshildarji harshildarji merged commit bb3287a into TheAlgorithms:master Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants