Visitar URL original
[OTHER] updating sort algorithm parameters to Generic type <T> · Issue #3767 · TheAlgorithms/Java · GitHub
The Wayback Machine - https://web.archive.org/web/20250514214757/https://github.com/TheAlgorithms/Java/issues/3767
Skip to content

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

Closed
@Tabbygray

Description

@Tabbygray

What would you like to share?

in [sorts] package, algorithms offer .sort() function.
most of them has input parameter as generic type Comparable, 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 ?

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions