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
'코딩테스트 > [C#] 프로그래머스' 카테고리의 다른 글
[프로그래머스 | C# | Lv.0] 원하는 문자열 찾기 (0) | 2023.08.19 |
---|---|
[프로그래머스 | C# | Lv.0] 뒤에서 5등 위로 (0) | 2023.08.17 |
[프로그래머스 | C# | Lv.0] 대문자로 바꾸기 (0) | 2023.08.16 |
[프로그래머스 | C# | Lv.0] n의 배수 (0) | 2023.08.16 |
[프로그래머스 | C# | Lv.0] n보다 커질 때까지 더하기 (0) | 2023.08.15 |