Java icon indicating copy to clipboard operation
Java copied to clipboard

[OTHER] updating sort algorithm parameters to Generic type <T>

Open Tabbygray opened this issue 2 years ago • 3 comments

What would you like to share?

in [sorts] package, algorithms offer .sort() function. most of them has input parameter as generic type Comparable<T>, but some of them supports int[ ] only.

※algorithms that sort int[ ] only = [BinaryInsertionSort, BucketSort, DNFSort, OddEvenSort, PigeonHoleSort, RadixSort] exception : beadsort (algorithm cannot sort negative int / String sort)

how do you think about updating algorithm's parameter type to Generic type <T>?

Additional information

No response

Tabbygray avatar Nov 18 '22 10:11 Tabbygray

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 19 '22 00:12 github-actions[bot]

I think we should do that because comparability is everything they need to work

siriak avatar Dec 20 '22 12:12 siriak

@siriak I'd like to do that, could you assign to me?

Regyl avatar Jan 15 '23 11:01 Regyl

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 16 '23 00:02 github-actions[bot]

Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Gitter or ping one of the reviewers. Thank you for your contributions!

github-actions[bot] avatar Feb 24 '23 00:02 github-actions[bot]