using System;
using System.Collections.Generic;
public class Solution {
public int[] solution(int[] num_list, int n) {
int[] answer = new int[] {};
List<int> array = new List<int>();
for(int i = n - 1; i < num_list.Length; i++)
array.Add(num_list[i]);
answer = array.ToArray();
return answer;
}
}
'프로그래머스 > Lv.0' 카테고리의 다른 글
[프로그래머스 C#] 등차수열의 특정한 항만 더하기 (0) | 2023.09.04 |
---|---|
[프로그래머스 C#] 접미사인지 확인하기 (0) | 2023.09.03 |
[프로그래머스 C#] n개 간격의 원소들 (0) | 2023.09.03 |
[프로그래머스 C#] n의 배수 고르기 (0) | 2023.09.03 |
[프로그래머스 C#] 제곱수 판별하기 (0) | 2023.09.03 |