mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-26 05:59:22 +08:00
Created general interface for most algorithms
Created utils methods Refactored ShellSort
This commit is contained in:
13
Sorts/SortAlgorithm.java
Normal file
13
Sorts/SortAlgorithm.java
Normal file
@ -0,0 +1,13 @@
|
||||
package Sorts;
|
||||
|
||||
/**
|
||||
* The common interface of most algorithms
|
||||
*
|
||||
* @author Podshivalov Nikita (https://github.com/nikitap492)
|
||||
*
|
||||
**/
|
||||
public interface SortAlgorithm {
|
||||
|
||||
<T extends Comparable<T>> T[] sort(T[] unsorted);
|
||||
|
||||
}
|
Reference in New Issue
Block a user