Skip to content

Commit abe291a

Browse files
committed
Improved 3533
1 parent def8733 commit abe291a

File tree

1 file changed

+3
-3
lines changed
  • src/main/kotlin/g3501_3600/s3533_concatenated_divisibility

1 file changed

+3
-3
lines changed

src/main/kotlin/g3501_3600/s3533_concatenated_divisibility/Solution.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ class Solution {
3939
digCnt: IntArray,
4040
nums: IntArray,
4141
pow10: IntArray,
42-
visited: Array<BooleanArray?>,
42+
visited: Array<BooleanArray>,
4343
ansIdx: Int,
4444
ans: IntArray,
4545
n: Int,
4646
): Boolean {
4747
if (ansIdx == n) {
4848
return residue == 0
4949
}
50-
if (visited[mask]!![residue]) {
50+
if (visited[mask][residue]) {
5151
return false
5252
}
5353
var i = 0
@@ -66,7 +66,7 @@ class Solution {
6666
i++
6767
bit = bit shl 1
6868
}
69-
visited[mask]!![residue] = true
69+
visited[mask][residue] = true
7070
return false
7171
}
7272
}

0 commit comments

Comments
 (0)