File tree Expand file tree Collapse file tree
src/main/java/com/thealgorithms/sorts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ private <T extends Comparable<T>> T findMin(T[] array) {
121121 private <T extends Comparable <T >> T findMax (T [] array ) {
122122 T max = array [0 ];
123123 for (T element : array ) {
124- if (SortUtils .greater (element ,max )) {
124+ if (SortUtils .greater (element , max )) {
125125 max = element ;
126126 }
127127 }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class ExchangeSort implements SortAlgorithm {
3131 public <T extends Comparable <T >> T [] sort (T [] array ) {
3232 for (int i = 0 ; i < array .length - 1 ; i ++) {
3333 for (int j = i + 1 ; j < array .length ; j ++) {
34- if (SortUtils .greater (array [i ], array [j ])){
34+ if (SortUtils .greater (array [i ], array [j ])) {
3535 SortUtils .swap (array , i , j );
3636 }
3737 }
You can’t perform that action at this time.
0 commit comments