Skip to content

Commit 30ebbf2

Browse files
committed
Fixed sonar
1 parent 3b6335d commit 30ebbf2

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/g3301_3400/s3352_count_k_reducible_numbers_less_than_n

1 file changed

+1
-1
lines changed

src/main/kotlin/g3301_3400/s3352_count_k_reducible_numbers_less_than_n/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Solution {
1717
dp[j + 1] += dp[j]
1818
dp[j + 1] %= MOD.toLong()
1919
}
20-
if (s.get(i) == '1') {
20+
if (s[i] == '1') {
2121
dp[curr]++
2222
dp[curr] %= MOD.toLong()
2323
curr++

0 commit comments

Comments
 (0)