-Code
class Solution {
public String solution(String my_string, int[] indices) {
String[] answer = my_string.split("");
for (int idx : indices) answer[idx] = "";
return String.join("", answer);
}
}
'Beakjoon&프로그래머스 > Java' 카테고리의 다른 글
[프로그래머스/Java] 가까운 1 찾기 (0) | 2025.02.11 |
---|---|
[프로그래머스/Java] 카운트 다운 (0) | 2025.02.11 |
[프로그래머스/Java] 배열 만들기 1 (0) | 2025.02.11 |
[프로그래머스/Java] 문자 개수 세기 (0) | 2025.02.11 |
[프로그래머스/Java] qr code (0) | 2025.02.11 |