728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181920
📝 나의 풀이
using System;
public class Solution {
public int[] solution(int start, int end) {
int[] answer = new int[end-start+1];
int j=0;
for(int i=start; i<=end; i++){
answer[j] = i;
j++;
}
return answer;
}
}
728x90
'코딩테스트 > [C#] 프로그래머스' 카테고리의 다른 글
[프로그래머스 | C# | Lv.0] 369게임 (0) | 2023.08.21 |
---|---|
[프로그래머스 | C# | Lv.0] 피자 나눠 먹기 (3) (0) | 2023.08.21 |
[프로그래머스 | C# | Lv.0] 원하는 문자열 찾기 (0) | 2023.08.19 |
[프로그래머스 | C# | Lv.0] 뒤에서 5등 위로 (0) | 2023.08.17 |
[프로그래머스 | C# | Lv.0] 부분 문자열 (0) | 2023.08.17 |