Skip to content

Commit 8bf1a0e

Browse files
committed
style: format LEONARDO array for improved readability with clang-format
1 parent a8ef941 commit 8bf1a0e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,8 @@ public class SmoothSort implements SortAlgorithm {
2727
* Leonardo numbers (L(0) = L(1) = 1, L(k+2) = L(k+1) + L(k) + 1) up to the largest value that
2828
* fits into a signed 32-bit integer.
2929
*/
30-
private static final int[] LEONARDO = {
31-
1, 1, 3, 5, 9, 15, 25, 41, 67, 109,
32-
177, 287, 465, 753, 1219, 1973, 3193, 5167, 8361, 13529,
33-
21891, 35421, 57313, 92735, 150049, 242785, 392835, 635621, 1028457, 1664079,
34-
2692537, 4356617, 7049155, 11405773, 18454929, 29860703, 48315633, 78176337, 126491971, 204668309,
35-
331160281, 535828591, 866988873, 1402817465
36-
};
30+
private static final int[] LEONARDO = {1, 1, 3, 5, 9, 15, 25, 41, 67, 109, 177, 287, 465, 753, 1219, 1973, 3193, 5167, 8361, 13529, 21891, 35421, 57313, 92735, 150049, 242785, 392835, 635621, 1028457, 1664079, 2692537, 4356617, 7049155, 11405773, 18454929, 29860703, 48315633, 78176337,
31+
126491971, 204668309, 331160281, 535828591, 866988873, 1402817465};
3732

3833
/**
3934
* Sorts the given array in ascending order using Smooth Sort.

0 commit comments

Comments
 (0)