OJ 1794. 【软件认证】最长的指定瑕疵度的元音子串
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
*/
package ahwoj;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;
/**
* 开头和结尾都是元音字母(aeiouAEIOU)的字符串为 元音字符串,其中混杂的非元音字母数量为瑕疵度;
* Diff1793的进阶题
* eg: asdbuiodevauufgh 0
*/
public class YuanYinString1794 {
public static int getLongestFlawedVowelSubstrLen(String str, int mix) {
int cnt = 0;
String yuan = "aeiouAEIOU";
char[] chars = str.toCharArray();
int l = 0;
int r = 0;
int max = 0;
while(l < str.</