Skip to content

Commit 1bf553a

Browse files
committed
Fixed style
1 parent bcfdd99 commit 1bf553a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/g3401_3500/s3470_permutations_iv/Solution.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ private long rec(int o, int e, int req) {
3838
count = addCapped(count, multiplyCapped(e, rec(o, e - 1, 0)));
3939
}
4040
} else if (req == 0) {
41-
if (o > 0) count = multiplyCapped(o, rec(o - 1, e, 1));
41+
if (o > 0) {
42+
count = multiplyCapped(o, rec(o - 1, e, 1));
43+
}
4244
} else {
43-
if (e > 0) count = multiplyCapped(e, rec(o, e - 1, 0));
45+
if (e > 0) {
46+
count = multiplyCapped(e, rec(o, e - 1, 0));
47+
}
4448
}
4549
DP[o][e][req] = count;
4650
return count;

0 commit comments

Comments
 (0)