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 3eadda0 commit b02d06fCopy full SHA for b02d06f
encode-and-decode-strings/jdalma.kt
@@ -20,7 +20,7 @@ class `encode-and-decode-strings` {
20
val result = mutableListOf<String>()
21
while (index < string.length) {
22
val delimiterIndex = string.indexOf(DELIMITER, startIndex = index)
23
- val size = string.substring(index , delimiterIndex).toInt()
+ val size = string.substring(index, delimiterIndex).toInt()
24
result.add(string.substring(delimiterIndex + 1, delimiterIndex + size + 1))
25
index = delimiterIndex + size + 1
26
}
0 commit comments