Skip to content

Commit bc90855

Browse files
authored
fix: $1371(#402)
1 parent 1bbac97 commit bc90855

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

problems/1371.find-the-longest-substring-containing-vowels-in-even-counts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ class Solution {
159159
for (int i = len - 1; i >= 0; i--) {
160160

161161
for (int j = 0; j < len - i; j++) {
162-
if (checkValid(preSum, s, i, i + j))
163-
return i + 1
162+
if (checkValid(preSum, s, j, i + j))
163+
return i + 1;
164164
}
165165
}
166-
return 0
166+
return 0;
167167
}
168168

169169

0 commit comments

Comments
 (0)