We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Radix sort seems to be broken as pointed out in #430
The text was updated successfully, but these errors were encountered:
there are two issues here.
I can post the fix to the first one, this makes code like this work
vector<int> arr{ 1, 8, 5, 12, 3 }; radix_sort(arr, 1, true); return 0;
but crashes with (negative array indexes get generated by get_digit)
vector<int> arr{ 1, 8, -5, 12, 3 }; radix_sort(arr, 1, true); return 0;
the second one is tougher. Two choices
I have verified that if I change the test harness to only generate >=0 values it works fine
Sorry, something went wrong.
one way to fix would be
I have coded this up, works fine
No branches or pull requests
Radix sort seems to be broken as pointed out in #430
The text was updated successfully, but these errors were encountered: