Skip to content

Commit ad646a8

Browse files
authored
Update Solution.kt
1 parent 748c192 commit ad646a8

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/g3601_3700/s3675_minimum_operations_to_transform_string

1 file changed

+1
-1
lines changed

src/main/kotlin/g3601_3700/s3675_minimum_operations_to_transform_string/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Solution {
77
val n = s.length
88
var ans = 0
99
for (i in 0..<n) {
10-
val c = s.get(i)
10+
val c = s[i]
1111
if (c != 'a') {
1212
val ops = 'z'.code - c.code + 1
1313
if (ops > ans) {

0 commit comments

Comments
 (0)