Skip to content

Added the correct(stable) version of count sort. Changed function …#648

Merged
raklaptudirm merged 4 commits intoTheAlgorithms:masterfrom
mandy8055:countSortFix
Aug 8, 2021
Merged

Added the correct(stable) version of count sort. Changed function …#648
raklaptudirm merged 4 commits intoTheAlgorithms:masterfrom
mandy8055:countSortFix

Conversation

@mandy8055
Copy link
Copy Markdown
Contributor

…declaration to ES6 style.

Welcome to JavaScript community

Open in Gitpod know more

Describe your change:

  • Add an algorithm?
  • [v ] Fix a bug or typo in an existing algorithm?
  • Documentation change?

Checklist:

  • [v ] I have read CONTRIBUTING.md.
  • [v ] This pull request is all my own work -- I have not plagiarized.
  • [v ] I know that pull requests will not be merged if they fail the automated tests.
  • [v ] This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • [ v] All new JavaScript files are placed inside an existing directory.
  • [v ] All filenames should use the UpperCamelCase (PascalCase) style. There should be no spaces in filenames.
    Example:UserProfile.js is allowed but userprofile.js,Userprofile.js,user-Profile.js,userProfile.js are not
  • [v ] All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • [v ] If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

Copy link
Copy Markdown
Contributor Author

@mandy8055 mandy8055 left a comment

Choose a reason for hiding this comment

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

Hi @raklaptudirm,

Updated the frequency array creation and initialization. Removed the copying of result array to the original array portion. Please review and merge the PR.

Thanks

…6 syntactic sugar to the syntax. Removed the unwanted len variable and updated the comments
@raklaptudirm raklaptudirm merged commit b794143 into TheAlgorithms:master Aug 8, 2021
@mandy8055 mandy8055 deleted the countSortFix branch August 8, 2021 12:48
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