class Solution {
public int[] solution(String s) {
int del = 0; // 0 삭제 횟수
int cnt = 0; // 규칙 반복 횟수
while(true) {
cnt++;
// 반복 횟수 +1
String s_now = s.replaceAll(“0”, “”);
// x의 모든 0을 제거합니다.
del += s.length()-s_now.length();
// 삭제한 0 갯수 세기
if(s_now.equals(“1”)) break;
// s가 “1”이 되어 결과값 반환
s = Integer.toBinaryString(s_now.length());
// x의 길이를 c라고 하면, x를 “c를 2진법으로 표현한 문자열”로 바꿉니다.
}
int[] answer = {cnt, del};
return answer;
}
}
Finally found a site that doesn’t lag during peak hours. The user experience is top notch and very intuitive. Give krwinzcasino a go
Super easy to access and the games load instantly. I spend most of my free time here and it never gets boring. Check out 365jililogin
Finally found a platform that doesn’t lag during the peak hours. The login process is seamless and everything just works perfectly. lucky999gamelogin
I was a bit skeptical at first but this site is legit. The customer support team helped me out with my account in minutes. lucky91onlinelogin is a gem.
Honestly the best user interface I have encountered so far. Everything is easy to find and the bonuses are actually fair. Definitely giving vn888p another go tonight.
Top notch customer service and very fair odds. It feels like they actually care about the players here. I love using vnqu88 for my daily fun.
[701]Cosmolot লগইন এবং অ্যাপ ডাউনলোড | বিকাশ পেমেন্ট স্লট গেম,cosmolot-এ সহজেই লগইন করে মোবাইলে স্লট গেম খেলার নিয়ম জানুন। বিকাশ দিয়ে অনলাইন ক্যাসিনো পেমেন্ট করে আজই আপনার অ্যাকাউন্ট খুলুন। visit: cosmolot
Finally found a platform that doesn’t lag during peak hours. The registration process was a breeze and I was able to start playing in minutes. Give winevo a try!
I finally found a site that actually pays out on time. The interface is super smooth and the login process is a breeze. Highly recommend 7kbet777login for anyone looking for a reliable spot.
Really impressed with the game variety here. I had a great run last night and the support team was helpful. Highly recommend vn188beet for anyone looking for action.