Skip to content

Commit 49b8db3

Browse files
committed
Fixed style
1 parent f9b1999 commit 49b8db3

File tree

1 file changed

+6
-6
lines changed
  • src/main/java/g3301_3400/s3343_count_number_of_balanced_permutations

1 file changed

+6
-6
lines changed

src/main/java/g3301_3400/s3343_count_number_of_balanced_permutations/Solution.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,28 +67,28 @@ private long countAll(
6767
return total;
6868
}
6969

70-
private static final List<long[]> ls = new ArrayList<>();
70+
private static final List<long[]> LONGS = new ArrayList<>();
7171

7272
static {
73-
ls.add(new long[] {1});
73+
LONGS.add(new long[] {1});
7474
}
7575

7676
private static long choose(int a, int b) {
77-
while (a >= ls.size()) {
78-
long[] prev = ls.get(ls.size() - 1);
77+
while (a >= LONGS.size()) {
78+
long[] prev = LONGS.get(LONGS.size() - 1);
7979
long[] next = new long[prev.length + 1];
8080
for (int i = 0; i < prev.length; i++) {
8181
next[i] = (next[i] + prev[i]) % M;
8282
next[i + 1] = prev[i];
8383
}
84-
ls.add(next);
84+
LONGS.add(next);
8585
}
8686
if (a - b < b) {
8787
b = a - b;
8888
}
8989
if (b < 0) {
9090
return 0;
9191
}
92-
return ls.get(a)[b];
92+
return LONGS.get(a)[b];
9393
}
9494
}

0 commit comments

Comments
 (0)