💻 나의 코드
using System;
public class Solution {
public int[] solution(string[] strlist) {
int[] answer = new int[strlist.Length];
for(int i = 0; i < strlist.Length; i++)
{
answer[i] += strlist[i].Length;
}
return answer;
}
}
'프로그래머스 > Lv.0' 카테고리의 다른 글
[프로그래머스 C#] 배열의 유사도 (0) | 2023.07.20 |
---|---|
[프로그래머스 C#] 점의 위치 구하기 (0) | 2023.07.19 |
[프로그래머스 C#] 중복된 숫자 개수 (0) | 2023.07.18 |
[프로그래머스 C#] 짝수 홀수 개수 (0) | 2023.07.18 |
[프로그래머스 C#] 양꼬치 (0) | 2023.07.17 |