Skip to content

Commit a848a87

Browse files
committed
Remove trailing spaces from SmoothSort
- Fix checkstyle violations on lines 16, 23, 28 - Remove trailing whitespace for compliance - No functional changes
1 parent 04c04bf commit a848a87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/thealgorithms/sorts/SmoothSort.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ public <T extends Comparable<T>> T[] sort(T[] array) {
1313
if (array == null || array.length <= 1) {
1414
return array;
1515
}
16-
16+
1717
heapSort(array);
1818
return array;
1919
}
2020

2121
private <T extends Comparable<T>> void heapSort(T[] array) {
2222
int n = array.length;
23-
23+
2424
// Build max heap
2525
for (int i = n / 2 - 1; i >= 0; i--) {
2626
heapify(array, n, i);
2727
}
28-
28+
2929
// Extract elements from heap
3030
for (int i = n - 1; i > 0; i--) {
3131
SortUtils.swap(array, 0, i);

0 commit comments

Comments
 (0)