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 264fadc commit 7cb816dCopy full SHA for 7cb816d
src/main/kotlin/g3501_3600/s3519_count_numbers_with_non_decreasing_digits/Solution.kt
@@ -65,7 +65,7 @@ class Solution {
65
while (i < n) {
66
num[i] = arr[i++].code - '0'.code
67
}
68
- val temp: MutableList<Int?> = ArrayList<Int?>()
+ val temp: MutableList<Int> = ArrayList<Int>()
69
var len = n
70
while (len > 0) {
71
var rem = 0
@@ -90,7 +90,7 @@ class Solution {
90
var k = 0
91
val size = temp.size
92
while (k < size) {
93
- res[k] = temp[size - 1 - k]!!
+ res[k] = temp[size - 1 - k]
94
k++
95
96
return res
0 commit comments