Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d89febd

Browse files
refactor 1100
1 parent 8dbd447 commit d89febd

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

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

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,6 @@
33
import java.util.HashSet;
44
import java.util.Set;
55

6-
/**
7-
* 1100. Find K-Length Substrings With No Repeated Characters
8-
*
9-
* Given a string S, return the number of substrings of length K with no repeated characters.
10-
*
11-
* Example 1:
12-
* Input: S = "havefunonleetcode", K = 5
13-
* Output: 6
14-
* Explanation:
15-
* There are 6 substrings they are : 'havef','avefu','vefun','efuno','etcod','tcode'.
16-
*
17-
* Example 2:
18-
* Input: S = "home", K = 5
19-
* Output: 0
20-
* Explanation:
21-
* Notice K can be larger than the length of S. In this case is not possible to find any substring.
22-
*
23-
* Note:
24-
* 1 <= S.length <= 10^4
25-
* All characters of S are lowercase English letters.
26-
* 1 <= K <= 10^4
27-
* */
286
public class _1100 {
297
public static class Solution1 {
308
public int numKLenSubstrNoRepeats(String S, int K) {

0 commit comments

Comments
 (0)