Skip to content

Commit d8bb548

Browse files
committed
Improved task
1 parent 7aa800a commit d8bb548

File tree

1 file changed

+2
-2
lines changed
  • src/main/kotlin/g3401_3500/s3463_check_if_digits_are_equal_in_string_after_operations_ii

1 file changed

+2
-2
lines changed

src/main/kotlin/g3401_3500/s3463_check_if_digits_are_equal_in_string_after_operations_ii/Solution.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Solution {
3434
private fun binomMod5(n: Int, k: Int): Int {
3535
var n = n
3636
var k = k
37-
val t = arrayOf<IntArray?>(
37+
val t = arrayOf<IntArray>(
3838
intArrayOf(1),
3939
intArrayOf(1, 1),
4040
intArrayOf(1, 2, 1),
@@ -48,7 +48,7 @@ class Solution {
4848
if (kd > nd) {
4949
return 0
5050
}
51-
res = (res * t[nd]!![kd]) % 5
51+
res = (res * t[nd][kd]) % 5
5252
n /= 5
5353
k /= 5
5454
}

0 commit comments

Comments
 (0)