Skip to content

Commit ff8d448

Browse files
committed
Fixed sonar
1 parent d1c7001 commit ff8d448

File tree

1 file changed

+2
-2
lines changed
  • src/main/kotlin/g3701_3800/s3703_remove_k_balanced_substrings

1 file changed

+2
-2
lines changed

src/main/kotlin/g3701_3800/s3703_remove_k_balanced_substrings/Solution.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ class Solution {
1515
val len = sb.length
1616
var b = true
1717
for (i in len - 2 * k..<len - k) {
18-
if (sb.get(i) != '(') {
18+
if (sb[i] != '(') {
1919
b = false
2020
break
2121
}
2222
}
2323
for (i in len - k..<len) {
24-
if (sb.get(i) != ')') {
24+
if (sb[i] != ')') {
2525
b = false
2626
break
2727
}

0 commit comments

Comments
 (0)