Skip to content

Commit c3a46ec

Browse files
committed
Remove trailing spaces from BinaryTreeSort
- Fix checkstyle violations on lines 30, 38, 42 - Remove trailing whitespace for compliance - No functional changes
1 parent aa4c1db commit c3a46ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ public <T extends Comparable<T>> T[] sort(T[] array) {
2727
if (array == null || array.length <= 1) {
2828
return array;
2929
}
30-
30+
3131
TreeNode<T> root = null;
3232
for (T value : array) {
3333
root = insert(root, value);
3434
}
3535

3636
List<T> result = new ArrayList<>();
3737
inorder(root, result);
38-
38+
3939
for (int i = 0; i < array.length; i++) {
4040
array[i] = result.get(i);
4141
}
42-
42+
4343
return array;
4444
}
4545

0 commit comments

Comments
 (0)