728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181891
📝 나의 풀이
using System;
public class Solution {
public int[] solution(int[] num_list, int n) {
int[] answer = new int[num_list.Length];
int index =0;
for(int i=n; i<num_list.Length; i++){
answer[index] = num_list[i];
index ++;
}
for(int i=0; i<n; i++){
answer[index] = num_list[i];
index++;
}
return answer;
}
}
728x90
'코딩테스트 > [C#] 프로그래머스' 카테고리의 다른 글
[프로그래머스 | C# | Lv.0] 문자 리스트를 문자열로 변환하기 (0) | 2023.09.06 |
---|---|
[프로그래머스 | C# | Lv.0] 뒤에서 5등까지 (0) | 2023.09.05 |
[프로그래머스 | C# | Lv.0] 0 떼기 (0) | 2023.09.05 |
[프로그래머스 | C# | Lv.0] 글자 이어 붙여 문자열 만들기 (0) | 2023.09.05 |
[프로그래머스 | C# | Lv.0] 더 크게 합치기 (0) | 2023.09.04 |