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

Commit748082e

Browse files
refactor 1371
1 parent591a473 commit748082e

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,6 @@
33
importjava.util.HashMap;
44
importjava.util.Map;
55

6-
/**
7-
* 1371. Find the Longest Substring Containing Vowels in Even Counts
8-
*
9-
* Given the string s, return the size of the longest substring containing each vowel an even number of times. That is, 'a', 'e', 'i', 'o', and 'u' must appear an even number of times.
10-
*
11-
* Example 1:
12-
* Input: s = "eleetminicoworoep"
13-
* Output: 13
14-
* Explanation: The longest substring is "leetminicowor" which contains two each of the vowels: e, i and o and zero of the vowels: a and u.
15-
*
16-
* Example 2:
17-
* Input: s = "leetcodeisgreat"
18-
* Output: 5
19-
* Explanation: The longest substring is "leetc" which contains two e's.
20-
*
21-
* Example 3:
22-
* Input: s = "bcbcbc"
23-
* Output: 6
24-
* Explanation: In this case, the given string "bcbcbc" is the longest because all vowels: a, e, i, o and u appear zero times.
25-
*
26-
* Constraints:
27-
* 1 <= s.length <= 5 x 10^5
28-
* s contains only lowercase English letters.
29-
* */
306
publicclass_1371 {
317
publicstaticclassSolution1 {
328
publicintfindTheLongestSubstring(Strings) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp