[프로그래머스 | C# | Lv.0] 글자 이어 붙여 문자열 만들기

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