Skip to content

Commit 7cb816d

Browse files
committed
Improved task
1 parent 264fadc commit 7cb816d

File tree

1 file changed

+2
-2
lines changed
  • src/main/kotlin/g3501_3600/s3519_count_numbers_with_non_decreasing_digits

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Solution {
6565
while (i < n) {
6666
num[i] = arr[i++].code - '0'.code
6767
}
68-
val temp: MutableList<Int?> = ArrayList<Int?>()
68+
val temp: MutableList<Int> = ArrayList<Int>()
6969
var len = n
7070
while (len > 0) {
7171
var rem = 0
@@ -90,7 +90,7 @@ class Solution {
9090
var k = 0
9191
val size = temp.size
9292
while (k < size) {
93-
res[k] = temp[size - 1 - k]!!
93+
res[k] = temp[size - 1 - k]
9494
k++
9595
}
9696
return res

0 commit comments

Comments
 (0)