Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd89febd

Browse files
refactor 1100
1 parent8dbd447 commitd89febd

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
importjava.util.HashSet;
44
importjava.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
publicclass_1100 {
297
publicstaticclassSolution1 {
308
publicintnumKLenSubstrNoRepeats(StringS,intK) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp