Skip to content

Commit 47240cd

Browse files
refactor 245
1 parent 0921099 commit 47240cd

File tree

1 file changed

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

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 245. Shortest Word Distance III
5-
*
6-
* This is a follow up of Shortest Word Distance. The only difference is now word1 could be the same as word2.
7-
* Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list.
8-
* word1 and word2 may be the same and they represent two individual words in the list.
9-
10-
For example,
11-
Assume that words = ["practice", "makes", "perfect", "coding", "makes"].
12-
13-
Given word1 = “makes”, word2 = “coding”, return 1.
14-
Given word1 = "makes", word2 = "makes", return 3.
15-
16-
Note:
17-
You may assume word1 and word2 are both in the list.
18-
*/
193
public class _245 {
204

215
public static class Solution1 {

0 commit comments

Comments
 (0)