diff --git a/src/Test344.kt b/src/Test344.kt new file mode 100644 index 0000000..1b78174 --- /dev/null +++ b/src/Test344.kt @@ -0,0 +1,13 @@ +class Test344 { + class Solution { + fun reverseString(s: CharArray): Unit { + var l = 0 + var r = s.lastIndex + while (l < r){ + s[l] = s[r].also { s[r] = s[l] } + l++ + r-- + } + } + } +} \ No newline at end of file