TheAlgorithms / Ruby

All algorithms implemented in Ruby
MIT License
1.15k stars 289 forks source link

Adding `counting sort` implementation #197

Closed aparibocci closed 1 year ago

aparibocci commented 1 year ago

As per title, this MR aims to add a counting sort ruby implementation.

Input array values and relation with respect to the provided upper bound are checked for consistency.

Unit tests are included.

aparibocci commented 1 year ago

Thanks

Thank you too, @StepfenShawn, for your reviews. Much appreciated!