Skip to content

Commit 0534c14

Browse files
committed
+ comments for InsertionSort
1 parent 44737f8 commit 0534c14

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sorting/InsertionSort.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1+
/**
2+
* Generic Insertion Sort
3+
* @author Jan Tabacki
4+
*/
5+
16
public class InsertionSort<T extends Comparable<? super T>> {
7+
8+
/**
9+
* Sort
10+
* @param T[] array of not sorted elements
11+
* @return T[] array of sorted element
12+
*/
213
public T[] Sort(T[] values) {
314
if (values.length > 0) {
415
T value = values[0];

0 commit comments

Comments
 (0)