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;
}
}
Hey! Just tried my luck at lucky98, pretty cool site. Good selection of games and the interface is smooth. Worth checking out if you’re looking for something new. Get your game on here! lucky98
Mexwoncasino, huh? Sounds interesting! Took a spin earlier and gotta say, they have some solid slots. Payouts seemed decent too. Anyone else tried it? Check it out and let me know what you think! mexwoncasino