코딩테스트 연습 - 문자열 뒤집기 | 프로그래머스 스쿨 (programmers.co.kr)
class Solution {
public String solution(String my_string) {
String answer = "";
for(int i=my_string.length()-1; i>=0; i--) {
answer += my_string.substring(i,i+1);
}
return answer;
}
}
java 문자열 슬라이스 어렵네...
'Study with me > 프로그래머스 L0 마스터하기' 카테고리의 다른 글
프로그래머스 - L0 중앙값구하기 (0) | 2023.11.03 |
---|---|
프로그래머스 - L0 문자반복출력하기 (0) | 2023.10.23 |
프로그래머스 - L0 문자열안에문자열 (0) | 2023.10.20 |
프로그래머스 - L0 배열뒤집기 (0) | 2023.10.20 |
프로그래머스 - L0 두수의나눗셈 (0) | 2023.10.18 |