From b02d06f62dbd1d85ad9ea2d97bddd688eb6ef7d8 Mon Sep 17 00:00:00 2001 From: Hyunjun Jeong Date: Wed, 21 Aug 2024 15:29:02 +0900 Subject: [PATCH] Update encode-and-decode-strings/jdalma.kt Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com> --- encode-and-decode-strings/jdalma.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encode-and-decode-strings/jdalma.kt b/encode-and-decode-strings/jdalma.kt index 6710b29a6..724700236 100644 --- a/encode-and-decode-strings/jdalma.kt +++ b/encode-and-decode-strings/jdalma.kt @@ -20,7 +20,7 @@ class `encode-and-decode-strings` { val result = mutableListOf() while (index < string.length) { val delimiterIndex = string.indexOf(DELIMITER, startIndex = index) - val size = string.substring(index , delimiterIndex).toInt() + val size = string.substring(index, delimiterIndex).toInt() result.add(string.substring(delimiterIndex + 1, delimiterIndex + size + 1)) index = delimiterIndex + size + 1 }