We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa800a commit d8bb548Copy full SHA for d8bb548
src/main/kotlin/g3401_3500/s3463_check_if_digits_are_equal_in_string_after_operations_ii/Solution.kt
@@ -34,7 +34,7 @@ class Solution {
34
private fun binomMod5(n: Int, k: Int): Int {
35
var n = n
36
var k = k
37
- val t = arrayOf<IntArray?>(
+ val t = arrayOf<IntArray>(
38
intArrayOf(1),
39
intArrayOf(1, 1),
40
intArrayOf(1, 2, 1),
@@ -48,7 +48,7 @@ class Solution {
48
if (kd > nd) {
49
return 0
50
}
51
- res = (res * t[nd]!![kd]) % 5
+ res = (res * t[nd][kd]) % 5
52
n /= 5
53
k /= 5
54
0 commit comments