Skip to content

Commit e05a377

Browse files
refactor 1078
1 parent b3a4122 commit e05a377

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

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

-21
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,6 @@
33
import java.util.stream.Collectors;
44
import java.util.stream.IntStream;
55

6-
/**
7-
* 5083. Occurrences After Bigram
8-
* <p>
9-
* Given words first and second, consider occurrences in some text of the form "first second third",
10-
* where second comes immediately after first, and third comes immediately after second.
11-
* For each such occurrence, add "third" to the answer, and return the answer.
12-
* <p>
13-
* Example 1:
14-
* Input: text = "alice is a good girl she is a good student", first = "a", second = "good"
15-
* Output: ["girl","student"]
16-
* <p>
17-
* Example 2:
18-
* Input: text = "we will we will rock you", first = "we", second = "will"
19-
* Output: ["we","rock"]
20-
* <p>
21-
* Note:
22-
* 1 <= text.length <= 1000
23-
* text consists of space separated words, where each word consists of lowercase English letters.
24-
* 1 <= first.length, second.length <= 10
25-
* first and second consist of lowercase English letters.
26-
*/
276
public class _1078 {
287
public static class Solution1 {
298
public String[] findOcurrences(String text, String first, String second) {

0 commit comments

Comments
 (0)