Skip to content

Commit 239d2f3

Browse files
fix build
1 parent ad8f848 commit 239d2f3

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+1
-1
lines changed

src/main/java/com/fishercoder/solutions/_340.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public int lengthOfLongestSubstringKDistinct(String s, int k) {
2929
num++;
3030
}
3131
if (num > k) {
32-
while (--count[s.charAt(left++)] > 0);
32+
while (--count[s.charAt(left++)] > 0) {};
3333
num--;
3434
}
3535
result = Math.max(result, right - left + 1);

0 commit comments

Comments
 (0)