Skip to content

Commit b02d06f

Browse files
jdalmaDaleSeo
andauthored
Update encode-and-decode-strings/jdalma.kt
Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com>
1 parent 3eadda0 commit b02d06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

encode-and-decode-strings/jdalma.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class `encode-and-decode-strings` {
2020
val result = mutableListOf<String>()
2121
while (index < string.length) {
2222
val delimiterIndex = string.indexOf(DELIMITER, startIndex = index)
23-
val size = string.substring(index , delimiterIndex).toInt()
23+
val size = string.substring(index, delimiterIndex).toInt()
2424
result.add(string.substring(delimiterIndex + 1, delimiterIndex + size + 1))
2525
index = delimiterIndex + size + 1
2626
}

0 commit comments

Comments
 (0)