class Solution {
public int solution(String[] babbling) {
int answer = 0;
for(int i=0; i<babbling.length; i++) {
String now = babbling[i];
/// 주어진 배열 babbling의 인덱스 하나씩 꺼내 now로 정의
now = now.replaceFirst(“aya”, “0”);
now = now.replaceFirst(“ye”, “0”);
now = now.replaceFirst(“woo”, “0”);
now = now.replaceFirst(“ma”, “0”);
/// 머쓱이의 조카는 단어를 한 번씩만 발음할 수 있으니 replaceFirst,
/// 사용 가능한 발음을 없애는 과정에서 새로운 사용 가능한 발음이 나오는 것을 막기 위해 발음을 없앤 곳에 0 표시
/// Ex) yayae
now = now.replaceAll(“0”, “”);
if(now.length()==0) answer++;
/// babbling[i]의 모든 문자가 발음 가능했으면 now의 길이는 0
}
return answer;
}
}
Finally found a site that doesn’t lag during peak hours. The login process is quick and the games are top notch. Great job on the optimization! jiligo88login
Had a bit of a lucky streak here yesterday! The login is seamless and the games load quickly without any lag. Visit 567jililogin if you want to try your luck.
[3269]Betfred অ্যাকাউন্ট খোলার নিয়ম এবং লাইভ ক্যাসিনো গেম,betfred একাউন্ট খোলার নিয়ম জানুন এবং বিকাশ দিয়ে ক্যাসিনো ডিপোজিট করে মোবাইলে লাইভ ক্যাসিনো গেম উপভোগ করুন। আজই অ্যাপ ডাউনলোড করে লগইন করুন। visit: betfred