deutranium / Algorithms

Short explanations and implementations of different algorithms in multiple languages
48 stars 98 forks source link

Radix new version #191

Closed rcchcz closed 3 years ago

rcchcz commented 3 years ago

This PR implements the code for radix sort in C++ -- this version of radix orders both non-negative and negative integers.

I have read the contributing guidelines in CONTRIBUTING.md and have ensured the following:

rcchcz commented 3 years ago

Could you help me with this? Is there any way to change this in the pull request made or should I make a new one?

deutranium commented 3 years ago

Just committing in the same branch (radix-new-version in this case) will automatically add it to the PR

codelixir commented 3 years ago

@deutranium I would suggest you clarify this underscore convention in the main README because otherwise, it looks like we are strictly enforcing camel case; so I think this exception should be pointed out.

There was a lot of confusion in #174 as well due to the same thing.

deutranium commented 3 years ago

@codelixir I was thinking more towards having camel case as the general naming convention and specifying any optional attributes/modifications (like compatibility with negative numbers in this case) should be done using a separator(_ here) to distinguish it from the main algorithm name

Could you make a PR/issue to add the same to README.md?

codelixir commented 3 years ago

@deutranium check if #228 looks good, sorry for the delay.