class Solution {
public int solution(String A, String B) {
if(A.equals(B)) return 0;
for(int i=1; i<A.length(); i++){
A = A.substring(A.length()-1)+A.substring(0,A.length()-1);
// A = A 마지막 글자 + A의 첫번째부터 마지막 바로 전 글자
if(B.equals(A)) return i;
}
return –1;
}
}
Ugh, cuối cùng cũng xong việc nhà! Xem qua cái này thấy SC8888 đa dạng thật. Nhớ là phải xem kỹ phần chiến thuật chứ đừng chỉ ham slot nha. Check thêm sc8888 download apk để an tâm hơn! 😅
This platform nails the classic feel, but remember that deep game analysis matters more than just the flashy interface. For beginners, understanding the core mechanics is key. Check out gamezone app login for a solid start!