Skip to content

Commit d0cd353

Browse files
committed
Fixed sonar
1 parent 1776443 commit d0cd353

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/g3501_3600/s3519_count_numbers_with_non_decreasing_digits

1 file changed

+2
-1
lines changed

src/main/java/g3501_3600/s3519_count_numbers_with_non_decreasing_digits/Solution.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ private long solve(int i, int[] arr, int tight, int base, int last, Long[][][] d
3636
ans = (ans + solve(i + 1, arr, tight & (j == arr[i] ? 1 : 0), base, j, dp));
3737
}
3838
}
39-
return dp[i][tight][last] = ans;
39+
dp[i][tight][last] = ans;
40+
return ans;
4041
}
4142

4243
private char[] subTractOne(char[] arr) {

0 commit comments

Comments
 (0)