728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181878
📝 나의 풀이
using System;
public class Solution {
public int solution(string myString, string pat) {
int answer = 0;
if(myString.ToUpper().Contains(pat.ToUpper())==true){
answer=1;
}
return answer;
}
}
728x90
'코딩테스트 > [C#] 프로그래머스' 카테고리의 다른 글
[프로그래머스 | C# | Lv.0] 피자 나눠 먹기 (3) (0) | 2023.08.21 |
---|---|
[프로그래머스 | C# | Lv.0] 카운트 업 (0) | 2023.08.20 |
[프로그래머스 | C# | Lv.0] 뒤에서 5등 위로 (0) | 2023.08.17 |
[프로그래머스 | C# | Lv.0] 부분 문자열 (0) | 2023.08.17 |
[프로그래머스 | C# | Lv.0] 대문자로 바꾸기 (0) | 2023.08.16 |