Skip to content

Remove duplicate counting sort and merge string counting sort #376

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 1 commit into from
Oct 2, 2018
Merged

Conversation

camilne
Copy link
Contributor

@camilne camilne commented Oct 1, 2018

The removed counting sort file is a duplicate and only works on strings containing 8-bit chars. This PR utilizes the existing generalized counting sort to provide a counting_sort_string wrapper. It uses the unicode value of characters to sort them, and returns a sorted string. It also improves the name of the method so it's not misleading.

Copy link
Member

@AnshulMalik AnshulMalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome

@AnshulMalik AnshulMalik merged commit 0e76ee9 into TheAlgorithms:master Oct 2, 2018
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