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

Commite05a377

Browse files
refactor 1078
1 parentb3a4122 commite05a377

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,6 @@
33
importjava.util.stream.Collectors;
44
importjava.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
publicclass_1078 {
287
publicstaticclassSolution1 {
298
publicString[]findOcurrences(Stringtext,Stringfirst,Stringsecond) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp