We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a45e6ec commit 0644098Copy full SHA for 0644098
src/main/java/com/fishercoder/solutions/_1100.java
@@ -31,7 +31,7 @@ public int numKLenSubstrNoRepeats(String S, int K) {
31
int count = 0;
32
Set<Character> set = new HashSet<>();
33
for (int i = 0; i <= S.length() - K; i++) {
34
- String string = S.substring(i, i+K);
+ String string = S.substring(i, i + K);
35
boolean invalid = false;
36
for (char c : string.toCharArray()) {
37
if (!set.add(c)) {
0 commit comments