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

Commit734cb40

Browse files
refactor 1461
1 parent8b7d3b4 commit734cb40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/main/java/com/fishercoder/solutions/_1461.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
publicclass_1461 {
77
publicstaticclassSolution1 {
8+
/**
9+
* inspired by https://leetcode.com/problems/check-if-a-string-contains-all-binary-codes-of-size-k/discuss/660505/Java-4-lines-solution
10+
*/
811
publicbooleanhasAllCodes(Strings,intk) {
912
Set<String>set =newHashSet<>();
1013
for (inti =0;i <=s.length() -k;i++) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp