Created general interface for most algorithms

Created utils methods
Refactored ShellSort
This commit is contained in:
nik
2018-04-09 12:05:41 +03:00
parent 205aec0c4f
commit 3c40937c66
3 changed files with 94 additions and 39 deletions

13
Sorts/SortAlgorithm.java Normal file
View 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);
}