728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181915
📝 나의 풀이
using System;
public class Solution {
public string solution(string my_string, int[] index_list) {
string answer = "";
for(int i=0; i<index_list.Length; i++){
answer += my_string.Substring(index_list[i], 1);
}
return answer;
}
}
728x90
'코딩테스트 > [C#] 프로그래머스' 카테고리의 다른 글
[프로그래머스 | C# | Lv.0] 배열 만들기 1 (0) | 2023.08.30 |
---|---|
[프로그래머스 | C# | Lv.0] 접두사인지 확인하기 (0) | 2023.08.30 |
[프로그래머스 | C# | Lv.0] 특정한 문자를 대문자로 바꾸기 (0) | 2023.08.29 |
[프로그래머스 | C# | Lv.0] 문자열 곱하기 (0) | 2023.08.28 |
[프로그래머스 | C# | Lv.0] 문자열의 뒤의 n글자 (0) | 2023.08.28 |