728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181852
📝 나의 풀이
using System;
public class Solution {
public int[] solution(int[] num_list) {
int[] answer = new int[num_list.Length-5];
Array.Sort(num_list);
int index = 5;
for(int i=0; i<num_list.Length-5; i++){
answer[i] = num_list[index];
index++;
}
return answer;
}
}
728x90
'코딩테스트 > [C#] 프로그래머스' 카테고리의 다른 글
[프로그래머스 | C# | Lv.0] 카운트 업 (0) | 2023.08.20 |
---|---|
[프로그래머스 | C# | Lv.0] 원하는 문자열 찾기 (0) | 2023.08.19 |
[프로그래머스 | C# | Lv.0] 부분 문자열 (0) | 2023.08.17 |
[프로그래머스 | C# | Lv.0] 대문자로 바꾸기 (0) | 2023.08.16 |
[프로그래머스 | C# | Lv.0] n의 배수 (0) | 2023.08.16 |