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

Commitef8c7b3

Browse files
author
Steve Sun
committed
fix build
1 parent65ddf44 commitef8c7b3

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class _244 {
2424
publicstaticclassSolution1 {
2525
classWordDistance {
2626
privateMap<String,List<Integer>>map;
27+
2728
publicWordDistance(String[]words) {
2829
map =newHashMap<>();
2930
for (inti =0;i <words.length;i++) {
@@ -37,6 +38,7 @@ public WordDistance(String[] words) {
3738
}
3839
}
3940
}
41+
4042
publicintshortest(Stringword1,Stringword2) {
4143
List<Integer>list1 =map.get(word1);
4244
List<Integer>list2 =map.get(word2);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp