Skip to content

Commit ef8c7b3

Browse files
author
Steve Sun
committed
fix build
1 parent 65ddf44 commit ef8c7b3

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
public static class Solution1 {
2525
class WordDistance {
2626
private Map<String, List<Integer>> map;
27+
2728
public WordDistance(String[] words) {
2829
map = new HashMap<>();
2930
for (int i = 0; i < words.length; i++) {
@@ -37,6 +38,7 @@ public WordDistance(String[] words) {
3738
}
3839
}
3940
}
41+
4042
public int shortest(String word1, String word2) {
4143
List<Integer> list1 = map.get(word1);
4244
List<Integer> list2 = map.get(word2);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy