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.