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

728x90

 

 

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

 

 

📝 나의 풀이

using System;

public class Solution {
    public int solution(string str1, string str2) {
        int answer = 0;
        
        if(str2.Contains(str1)==true) answer= 1;

        return answer;
    }
}

 

 

728x90