본문 바로가기

Coding Test/프로그래머스

[프로그래머스/자바] n 번째 원소부터

import java.util.Arrays;

class Solution {
    public int[] solution(int[] num_list, int n) {
        return Arrays.copyOfRange(num_list, n - 1, num_list.length);
    }
}