코딩테스트/[C#] 프로그래머스

[프로그래머스 | C# | Lv.0] 꼬리 문자열

냠냠쿠 2023. 9. 1. 20:54
728x90

https://school.programmers.co.kr/learn/courses/30/lessons/181841

📝 나의 풀이

using System;

public class Solution {
    public string solution(string[] str_list, string ex) {
        string answer = "";
        
        for(int i=0; i<str_list.Length; i++){
            
            if(str_list[i].Contains(ex)==false){
                answer+=str_list[i];
            }
        }
        return answer;
    }
}
728x90