We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent def8733 commit abe291aCopy full SHA for abe291a
src/main/kotlin/g3501_3600/s3533_concatenated_divisibility/Solution.kt
@@ -39,15 +39,15 @@ class Solution {
39
digCnt: IntArray,
40
nums: IntArray,
41
pow10: IntArray,
42
- visited: Array<BooleanArray?>,
+ visited: Array<BooleanArray>,
43
ansIdx: Int,
44
ans: IntArray,
45
n: Int,
46
): Boolean {
47
if (ansIdx == n) {
48
return residue == 0
49
}
50
- if (visited[mask]!![residue]) {
+ if (visited[mask][residue]) {
51
return false
52
53
var i = 0
@@ -66,7 +66,7 @@ class Solution {
66
i++
67
bit = bit shl 1
68
69
- visited[mask]!![residue] = true
+ visited[mask][residue] = true
70
71
72
0 commit comments