using System;
public class Solution {
public int[] solution(int start, int end) {
int[] answer = new int[start - end + 1];
for(int i = 0; i < answer.Length; i++)
{
answer[i] = start;
start--;
}
return answer;
}
}
'프로그래머스 > Lv.0' 카테고리의 다른 글
[프로그래머스 C#] 원하는 문자열 찾기 (0) | 2023.08.15 |
---|---|
[프로그래머스 C#] 문자열의 뒤의 n글자 (0) | 2023.08.15 |
[프로그래머스 C#] 카운트 업 (0) | 2023.08.14 |
[프로그래머스 C#] 부분 문자열 (0) | 2023.08.13 |
[프로그래머스 C#] n의 배수 (0) | 2023.08.13 |