Skip to content

Commit 748082e

Browse files
refactor 1371
1 parent 591a473 commit 748082e

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
import java.util.HashMap;
44
import java.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
public class _1371 {
317
public static class Solution1 {
328
public int findTheLongestSubstring(String s) {

0 commit comments

Comments
 (0)